Skip to content

Commit 8886092

Browse files
committed
Go: Try to ignore errors in go mod vendor calls
1 parent 4d28c0d commit 8886092

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/extractor/toolchain/toolchain.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ func InitModule(path string) *exec.Cmd {
8686
return modInit
8787
}
8888

89-
// Constructs a command to run `go mod vendor` in the directory given by `path`.
89+
// Constructs a command to run `go mod vendor -e` in the directory given by `path`.
9090
func VendorModule(path string) *exec.Cmd {
91-
modVendor := exec.Command("go", "mod", "vendor")
91+
modVendor := exec.Command("go", "mod", "vendor", "-e")
9292
modVendor.Dir = path
9393
return modVendor
9494
}

0 commit comments

Comments
 (0)