-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release: Trouble with bash/zsh finding the GOPATH #11052
Comments
@adg as a bit of background, this issue arose from a conversation I had with Stuart on twitter. I've seen another report (don't have the url handy) on golang-nuts of a similar problem, so consider this issue a reminder to someone, probably me, to check that the 1.4.2 installer is working on the latest os x 10.10.x. Specifically if |
Thanks @davecheney for taking this on. For reference, this is OS X 10.10.3 that the new MacBook Pro is running. |
Actually, coming to think of it, my old MacBook Air was running OS X 10.10.3 too...so maybe it doesn't have to do with the OS? |
Hey @davecheney, so it seems there is a direct issue with (possibly) both bash and oh-my-zsh. I used prezto and it works! (https://github.com/sorin-ionescu/prezto) This means that if others are having issues, this may be a possible solution. -Stu. |
Leaving this open for official comment unless you wish to close it @davecheney. |
FYI: All the shells shipped with OS X, including (Prezto probably "works" just by undoing the OMZ breakage. Installing OMZ or fixing the user's If you run in to this in the future, first thing to do is probably check for OMZ and/or a broken # BUG! This will break /etc/paths.d
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:
# Okay:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:$PATH I don't know what the issue with |
@apjanke thanks for your detailed explanation. It sounds like oh-my-zsh has got some usability issues. I'm closing this as there is nothing that the Go installer can or should do in this circumstance. |
I just purchased a new MacBook Pro, and installed Go via the
go1.4.2.darwin-amd64-osx10.8.pkg
package on the downloads page. in my zshrc file, I have set the GOPATH and PATH as such:however when I am in zsh (or bash) and I type
which go
, I do not get a PATH printout at all for bash, and I just getgo not found
if using zsh.When I check to see if
/etc/paths.d/
has a file named go, it does (which apparently means everything installed correct. What I don't understand is when I set the exact same working directory shown above on my old machine, it worked without a hitch.Lastly, if I manually do an
export PATH=$PATH:/usr/local/go/bin
on the zsh/bash command line and then typewhich go
, the PATH is set until I close the terminal window.If you have any other questions, please feel free to ask! I want to get this solved 😄
-Stu.
The text was updated successfully, but these errors were encountered: