Skip to content

Commit b872c60

Browse files
committed
Go: Support more dependency managers in IsGolangVendorDirectory
1 parent c7dc8a3 commit b872c60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

go/extractor/util/util.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,5 +307,8 @@ func fileExists(path string) bool {
307307
// and contains a `modules.txt` file.
308308
func IsGolangVendorDirectory(dirPath string) bool {
309309
return filepath.Base(dirPath) == "vendor" &&
310-
(fileExists(filepath.Join(dirPath, "modules.txt")) || fileExists(filepath.Join(dirPath, "../glide.yaml")))
310+
(fileExists(filepath.Join(dirPath, "modules.txt")) ||
311+
fileExists(filepath.Join(dirPath, "../glide.yaml")) ||
312+
fileExists(filepath.Join(dirPath, "../Gopkg.lock")) ||
313+
fileExists(filepath.Join(dirPath, "../vendor.conf")))
311314
}

0 commit comments

Comments
 (0)