On Sun, Oct 15, 2017 at 5:22 AM, Nate Finch <nate.fi...@gmail.com> wrote:
> https://github.com/magefile/mage/issues/69
>
> Mage calls go build via os/exec, explicitly passing through  os.Environ to 
> the subprocess.
>
> Somehow the cross compiled binary from my osx laptop is referencing the 
> goroot from my laptop when it tries to run go build on a Linux machine.
>
> 1. How is this possible?
> 2. How can I fix it?

Cross-compiling your Go toolchain is the rare case where it may make
sense to set GOROOT in the environment when running the cross-compiled
Go toolchain.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to