We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7dc8a3 + b872c60 commit 16e84d0Copy full SHA for 16e84d0
go/extractor/util/util.go
@@ -307,5 +307,8 @@ func fileExists(path string) bool {
307
// and contains a `modules.txt` file.
308
func IsGolangVendorDirectory(dirPath string) bool {
309
return filepath.Base(dirPath) == "vendor" &&
310
- (fileExists(filepath.Join(dirPath, "modules.txt")) || fileExists(filepath.Join(dirPath, "../glide.yaml")))
+ (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")))
314
}
0 commit comments