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

Add $HOME/go/bin to PATH #121

Closed nascarsayan closed 1 year ago

nascarsayan commented 1 year ago

Some binaries are installed in ~/go/bin when we run go install pkg@version. By default, this folder is not present in PATH. Providing instructions to add this folder to PATH. We can do the same for Windows too, would need to cross-check if the PATH is %USERPROFILE%\go\bin for windows.

juev commented 1 year ago

@nascarsayan

Why are you using this particular directory? Its location varies depending on the environment variables.

And if so, why specify the default value in the documentation? In my opinion, this is confusing.

kevincobain2000 commented 1 year ago

Yes, $HOME/go/.. is reserved by go. gobrew shouldn't have to do anything with it. Plus these are just printing instructions, anyone can override those based on their needs.

Hope that helps. And thanks for the pull req.