go - Best way to bootstrap the Golang install with an existing homebrew install -


the go tool chain rewritten in go, requiring prior go compiler exist perform install.

you can point existing compiler using goroot_bootstrap environment variable.

in situation have go installed homebrew. going forward want compile source , not 'brew upgrade go'. want use homebrew install compile latest source, exists on system.

the following throws error ("cannot find packages")

cd $gopath/src/github.com/golang/go/src goroot_bootstrap=/usr/local/cellar/go/1.6.2 ./all.bash 

and ("cannot find /usr/local/cellar/go/1.6.2/go/bin/go")

goroot_bootstrap=/usr/local/cellar/go/1.6.2/go ./all.bash 

but works (mostly, except me fails python _lldb.so plug-in error)

goroot_bootstrap=/usr/local/cellar/go/1.6.2/libexec ./all.bash 

what "libexec" in context? , there better way install golang prior compiler being homebrew?


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -