mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
Fetcher: switch to mod download (#448)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user