Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
modules.txt
glide.yaml
vendor
1 parent fe4ee54 commit 11e3a08Copy full SHA for 11e3a08
1 file changed
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