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.
1 parent 90b7901 commit 8269bffCopy full SHA for 8269bff
go/extractor/cli/go-autobuilder/go-autobuilder.go
@@ -385,9 +385,9 @@ func getModMode(depMode DependencyInstallerMode, baseDir string) ModMode {
385
if depMode == GoGetWithModules {
386
// if a vendor/modules.txt file exists, we assume that there are vendored Go dependencies, and
387
// skip the dependency installation step and run the extractor with `-mod=vendor`
388
- if util.FileExists(baseDir + "/vendor/modules.txt") {
+ if util.FileExists(filepath.Join(baseDir, "vendor", "modules.txt")) {
389
return ModVendor
390
- } else if util.DirExists(baseDir + "/vendor") {
+ } else if util.DirExists(filepath.Join(baseDir, "vendor")) {
391
return ModMod
392
}
393
0 commit comments