Fetcher: switch to mod download (#448)

This commit is contained in:
Marwan Sulaiman
2018-08-15 12:33:00 -04:00
committed by GitHub
parent d088208941
commit 889de448dc
+1 -1
View File
@@ -91,7 +91,7 @@ func getSources(goBinaryName string, fs afero.Fs, gopath, repoRoot, module, vers
disableCgo := "CGO_ENABLED=0"
enableGoModules := "GO111MODULE=on"
cmd := exec.Command(goBinaryName, "get", fullURI)
cmd := exec.Command(goBinaryName, "mod", "download", fullURI)
// PATH is needed for vgo to recognize vcs binaries
// this breaks windows.
cmd.Env = []string{"PATH=" + os.Getenv("PATH"), gopathEnv, cacheEnv, disableCgo, enableGoModules}