-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: different old install path does not remove the distribution for mac installer #35883
Comments
It doesn't look like your previous installation was done by the standard installer. So I guess it detected a /cc @dmitshur in case the removal message can be improved. |
Downloaded both versions from golang.org. |
Can you run From the
It looks like Go 1.11.5 was installed via Homebrew, while Go 1.13.4 was installed with the macOS installer from golang.org/dl. The installer does remove previous versions of Go installed via the same means, but it can't take such action for versions of Go installed via other means (such as from Homebrew). |
Thx for the prompt response. But in fact I ended up removing 1.11 from my computer.... sorry about that.. I could swear both came from golang installer.... but honestly I don't remember if I installed it from homebrew or from golang since that was months ago.... But if the issue is not reproduceable using both installers, then you may close this issue... in the end... that was a dated version |
No problem and thanks for reporting this. I believe the macOS installer correctly removes previous versions of Go that were installed using the same installer, so there's no issue there. I don't think it's in scope for the macOS installer to be aware of other types of installers. If we continue to see problems related to that, we can reconsider this based on that data. I'll close this since we can't reproduce this particular instance, and I'm not seeing actionable steps to take for now. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
Output/usr/local/go/bin/go env
OutputWhat did you do?
I downloaded go 1.11.5 months ago and had it installed on my machine.
Then now, I'm taking a Go training and decided to upgrade my go to the most recent version 1.13.4.
Downloaded the installation file for Mac
Executed the package
It popped up a msg saying it identified a previous version and was going o uninstall it
Moved on and finished the installation.
Then when I ran go version, it returned it was still on version 1.11.5.
Then I ran where go command and it returned:
$ where go
/usr/local/bin/go
/usr/local/go/bin/go
That's when I realized it change the installation path. Now I have both versions on my computer
What did you expect to see?
I expected the installer to uninstall 1.11.5 and leave only 1.13.4
What did you see instead?
The main installation remain pointing to 1.11.5, so I'll need to manually uninstall it now.
The text was updated successfully, but these errors were encountered: