mirror of
https://github.com/restic/restic.git
synced 2025-04-16 20:31:30 +00:00
build.go: Set GOPROXY=off
This commit is contained in:
parent
6cd5f8b7f5
commit
16e20676b6
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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user