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

x/build/cmd/release: macOS installer doesn't add /usr/local/go/bin to PATH when installing Go 1.14 #44723

Closed
jcollum opened this issue Mar 1, 2021 · 2 comments
Labels
Builders x/build issues (builders, bots, dashboards) Documentation FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@jcollum
Copy link

jcollum commented Mar 1, 2021

What version of Go are you using (go version)?

n/a, Go won't install

Does this issue reproduce with the latest release?

n/a, I need to install a prior release

What operating system and processor architecture are you using (go env)?

n/a, Go won't install

What did you do?

Downloaded https://golang.org/doc/install?download=go1.14.15.darwin-amd64.pkg

Installed it

Opened a new terminal

What did you expect to see?

Go available at the command line

What did you see instead?

$ which go
go not found

Additional info

The installer instructions say

The package installs the Go distribution to /usr/local/go. The package should put the /usr/local/go/bin directory in your PATH environment variable. You may need to restart any open Terminal sessions for the change to take effect.

That's not happening with the 1.14 installer. It would help a lot to have some separate instructions (in a readme or something) for older versions of Go. While I did solve this, the instructions were a little misleading. Just a sentence about older versions not automatically updating the PATH would help.

I repeated this install several times today, with the same results every time.

@seankhliao seankhliao changed the title Go not available on command line after install - 1.14 doc: darwin install instructions need PATH modification for < 1.14 Mar 2, 2021
@dmitshur
Copy link
Contributor

dmitshur commented Mar 2, 2021

That's not happening with the 1.14 installer.

It should be, so if it isn't, that's unexpected. Can you check if the file /etc/paths.d/go exists after running the installer? It should contain "/usr/local/go/bin" with a newline at the end.

$ cat /etc/paths.d/go
/usr/local/go/bin

@dmitshur dmitshur added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Mar 2, 2021
@dmitshur dmitshur changed the title doc: darwin install instructions need PATH modification for < 1.14 x/build/cmd/release: macOS installer doesn't add /usr/local/go/bin to PATH when installing Go 1.14 Mar 2, 2021
@gopherbot gopherbot added the Builders x/build issues (builders, bots, dashboards) label Mar 2, 2021
@gopherbot gopherbot added this to the Unreleased milestone Mar 2, 2021
@dmitshur dmitshur added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Mar 24, 2021
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Apr 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Builders x/build issues (builders, bots, dashboards) Documentation FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants