Skip to content
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

Best path for GOROOT #28

Closed
wdfinch opened this issue Apr 8, 2022 · 2 comments
Closed

Best path for GOROOT #28

wdfinch opened this issue Apr 8, 2022 · 2 comments

Comments

@wdfinch
Copy link

wdfinch commented Apr 8, 2022

Hi sorry, there I'm a go noob. I'm installed go using gobrew and my IDE is complaining because I don't have GOROOT set. What should I set it to with this install method? Maybe some info on this could be added to the docs?

@kevincobain2000
Copy link
Owner

kevincobain2000 commented Apr 8, 2022

Hi
What is your current GOROOT? You can check it from go env|grep -i GOROOT

It should have been there already by default. If not then you can set it as

export GOROOT=$HOME/.gobrew/current/go

@wdfinch
Copy link
Author

wdfinch commented Apr 8, 2022

Gotcha. When i run that command I get:

GOROOT="/home/wfinch/.gobrew/versions/1.18/go"

That should be fine. I think the issue is I need to export it so my IDE can read it. Thanks so much!

@wdfinch wdfinch closed this as completed Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants