So I eventually figured this out, and boy was it dumb on my part. I had a script that was effecting
$GOROOT, and learned alot. Here are the big lessons:
- Do NOT use
sudo apt-get install golangit is out of date and doing so means you now have to revert the install.
sudo apt-get install golang-gois also out of date. Just don't use
sudo apt-get purge golangdoes not reset environment variables or delete all go related folders.
unset GOPATH GOHOME GOROOTis important cleanup before trying another install
ONLY install via
tar.gzfrom the golang website
- GOROOT means the folder where go's internal files live, so basically where ever the contents of the
tar.gzlives on your system. Typically
- GOHOME does not need to be set. If you set it, use
- GOPATH is the location of your workspace, you need to
mkdirto create that folder as well as set the GOPATH environment variable.
- Your path needs to included
$GOROOT/bin:$GOPATH/binfor the setup to function.
Usage of custom scripts that effect
profile should not contain setting of