mirror of
https://github.com/restic/restic.git
synced 2025-08-14 02:49:23 +00:00
build.go: Set GOPROXY=off
This commit is contained in:
2
build.go
2
build.go
@@ -285,7 +285,7 @@ func build(cwd string, ver GoVersion, goos, goarch, goarm, gopath string, args .
|
||||
|
||||
a = append(a, args...)
|
||||
cmd := exec.Command("go", a...)
|
||||
cmd.Env = append(cleanEnv(), "GOPATH="+gopath, "GOARCH="+goarch, "GOOS="+goos)
|
||||
cmd.Env = append(cleanEnv(), "GOPROXY=off", "GOPATH="+gopath, "GOARCH="+goarch, "GOOS="+goos)
|
||||
if goarm != "" {
|
||||
cmd.Env = append(cmd.Env, "GOARM="+goarm)
|
||||
}
|
||||
|
Reference in New Issue
Block a user