Skip to content

Commit 8269bff

Browse files
committed
Use filepath.Join more
1 parent 90b7901 commit 8269bff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/extractor/cli/go-autobuilder/go-autobuilder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ func getModMode(depMode DependencyInstallerMode, baseDir string) ModMode {
385385
if depMode == GoGetWithModules {
386386
// if a vendor/modules.txt file exists, we assume that there are vendored Go dependencies, and
387387
// skip the dependency installation step and run the extractor with `-mod=vendor`
388-
if util.FileExists(baseDir + "/vendor/modules.txt") {
388+
if util.FileExists(filepath.Join(baseDir, "vendor", "modules.txt")) {
389389
return ModVendor
390-
} else if util.DirExists(baseDir + "/vendor") {
390+
} else if util.DirExists(filepath.Join(baseDir, "vendor")) {
391391
return ModMod
392392
}
393393
}

0 commit comments

Comments
 (0)