Skip to content

x/website: Incorrect step to modify PATH environment variable #69001

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

Closed
rootulp opened this issue Aug 21, 2024 · 3 comments
Closed

x/website: Incorrect step to modify PATH environment variable #69001

rootulp opened this issue Aug 21, 2024 · 3 comments
Labels
Milestone

Comments

@rootulp
Copy link

rootulp commented Aug 21, 2024

What is the URL of the page with the issue?

https://go.dev/doc/install

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Screenshot

Screenshot 2024-08-21 at 4 10 21 PM

What did you do?

I copied this command and ran it on a Scaleway instance

What did you expect to see?

I expected all my Go binaries to be accessible via my PATH

What did you see instead?

Instead the Go binaries I installed were not accessible via my PATH. The go binaries that I installed were saved to /root/go/bin so I had to modify my path via:

export PATH=$PATH:/root/go/bin

to access those binaries. Can this step be modified to account for cases where the Go bin directory is not at /usr/local/go/bin

@gopherbot gopherbot added this to the Unreleased milestone Aug 21, 2024
@zigo101
Copy link

zigo101 commented Aug 22, 2024

The Go install paths might differ because of different Linux distributions and user configurations. The doc just shows an example.

[edit]: Ah, you use Mac, I'm not familiar with it.

@seankhliao
Copy link
Member

The installation is only about the go toolchain itself, any binaries you install may be in a different location, see #42823

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants