kevincobain2000 / gobrew

Go version manager, written in Go. Super simple tool to install and manage Go versions. Install go without root. Gobrew doesn't require shell rehash.
https://medium.com/web-developer/go-version-manager-gobrew-c8750157dfe6
MIT License
364 stars 24 forks source link

how its knows where my goroot is ? #98

Closed gedw99 closed 1 year ago

gedw99 commented 1 year ago

works first time - great work

how did it know where my GOPATH is ?

maybe it found it from the previous go install ?

gedw99 commented 1 year ago

i needed to set this to make it work btw:

# gobrewsettings
export PATH="$HOME/.gobrew/current/bin:$HOME/.gobrew/bin:$PATH"
export GOROOT="$HOME/.gobrew/current/go"

# plus where the bin and pkg are. use go default..
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
gedw99 commented 1 year ago

I had to also tell vscode where it is.

Screenshot 2023-04-26 at 13 27 25
kevincobain2000 commented 1 year ago

Cool