We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
modules.txt
glide.yaml
vendor
1 parent fe4ee54 commit 11e3a08Copy full SHA for 11e3a08
go/extractor/util/util.go
@@ -306,5 +306,6 @@ func fileExists(path string) bool {
306
// Decides if `dirPath` is a vendor directory by testing whether it is called `vendor`
307
// and contains a `modules.txt` file.
308
func IsGolangVendorDirectory(dirPath string) bool {
309
- return filepath.Base(dirPath) == "vendor" && fileExists(filepath.Join(dirPath, "modules.txt"))
+ return filepath.Base(dirPath) == "vendor" &&
310
+ (fileExists(filepath.Join(dirPath, "modules.txt")) || fileExists(filepath.Join(dirPath, "../glide.yaml")))
311
}
0 commit comments