mirror of
https://github.com/restic/restic.git
synced 2025-01-03 05:35:43 +00:00
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...)
|
a = append(a, args...)
|
||||||
cmd := exec.Command("go", a...)
|
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 != "" {
|
if goarm != "" {
|
||||||
cmd.Env = append(cmd.Env, "GOARM="+goarm)
|
cmd.Env = append(cmd.Env, "GOARM="+goarm)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue