forked from TrueCloudLab/restic
build.go: Set GOPROXY=off
This commit is contained in:
parent
6cd5f8b7f5
commit
16e20676b6
1 changed files with 1 additions and 1 deletions
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…
Reference in a new issue