-
Notifications
You must be signed in to change notification settings - Fork 248
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
goenv not setting $GOPATH and $GOROOT on Apple M1 using ZSH #186
Comments
I had the same problem on traditional, non-M1 hardware. Turns out that earlier in my giant .zshrc I was |
Scratch that, I must have had a bad test. I still have the issue. |
Same on non-m1 mac. |
The issue here is |
It looks like the offending lines came from the README -- it looks like this feature is not that well thought-out and potentially breaks stuff badly. I personally don't use |
I've hit this issue, but if I don't run My zshrc config is as follows:
|
Looks like this has been solved. |
I just started using the latest version As per @jochman's post above, And like @Nalum, when I follow the install instructions, adding these two lines after
If I remove those two lines local version switching works (but setting the environment variables still doesn't work). @ChronosMasterOfAllTime -- you marked this issue as resolved back in Feb 19? It does not appear to be resolved, unless I misunderstood the discussion in this thread. Any help really appreciated. |
@ianjukes I will look into this. I also have a a Mac with zsh installed. Let me try to reproduce what you're running into. |
Thank you @ChronosMasterOfAllTime. Just let me know if you need me to do any additional troubleshooting. |
Did this ever work for you @ianjukes? I am facing the same issue as you |
As @ianjukes described I have the same behavior.
Using ubuntu with zsh and this is my experience also. The two exports added after the init described in the readme break the |
Unfortunately not -- I still have the same issue. |
@ianjukes please find me on Discord so we can better figure out what's going on my username is the same as here but all lowercase |
If you're using homebrew in your M1 mac and the data is imported from an Intel one, you can consider removing |
I've followed the installation instructions in an attempt to setup
goenv
and have it manage$GOPATH
and$GOROOT
on my Apple M1 MacBook Pro.I'm using ZSH as my shell and this is the contents of my
.zshrc
file.After configuring
.zshrc
and restarting my shell this is what I see for Golang environment variables:For what it's worth I'm able to successfully use
goenv
to install Golang. I also have a non-M1 MacBook Pro that I did the same setup on using ZSH and had no issues with installation and havinggoenv
manage$GOPATH
and$GOROOT
.The text was updated successfully, but these errors were encountered: