mage: don't append environ here
This commit is contained in:
parent
0ada04df8c
commit
4178527b9b
2
mage.go
2
mage.go
|
@ -64,7 +64,7 @@ func Build() {
|
||||||
|
|
||||||
os.Mkdir(filepath.Join(d, goos), 0777)
|
os.Mkdir(filepath.Join(d, goos), 0777)
|
||||||
for _, pkg := range []string{"route-httpagent", "route", "routed"} {
|
for _, pkg := range []string{"route-httpagent", "route", "routed"} {
|
||||||
goBuild(ctx, append(os.Environ(), "GOOS="+goos), filepath.Join(d, goos), "cmd/"+pkg)
|
goBuild(ctx, []string{"GOOS=" + goos}, filepath.Join(d, goos), "cmd/"+pkg)
|
||||||
qod.Printlnf("built binary for %s for os %s", pkg, goos)
|
qod.Printlnf("built binary for %s for os %s", pkg, goos)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue