-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: using go get to install new versions of go doesn't seem to work #37428
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
Comments
It looks like the It might be worth making the download destination path clearer in the docs, or maybe having the In any case I don't think this method is viable for what I'm trying to do after playing around with it a bit, I'm going to use the PPA route instead. |
|
Understood, thanks.
|
Hi @superlazyname. This seems like it's working as expected. Please comment if you disagree. I will be closing the issue. |
I had the same problem.
Where it is recommended? Not in getting started doc. If you follow just instructions there, on Linux, you do:
I think that document should mention that you should set |
@mitar Setting the directory where I'll reopen this issue and take a look soon. |
Thanks. Yes, I have heard about |
Change https://golang.org/cl/237584 mentions this issue: |
@cagedmantis is it possible for go to give a useful error message or something in this case? It doesn't seem like a great idea for it to just fail silently unless there's no other option. |
@superlazyname It probably should give a better message, yes. #35912 is the tracking issue for that. |
Instructions were updated by https://go-review.googlesource.com/c/go/+/254365 It seems that issue can be closed. |
The instruction in GO's document is unclear. |
[SOLVED] for me: |
This is still unclear. I'm just following the doc here: https://go.dev/doc/manage-install#linux-mac-bsd Bad first experience and 15 min lost because of it. Please fix this for future users. |
Can you give more detail about your problem? You can't find go binary file or don't know how to add the version you need to path? |
@dongocanh96 I read this in the doc:
I totally missed the go install command link which explain things in details. So being new to
If you add the binary location to the documentation or add a comment saying that |
No, the binary file will be downloaded in |
This worked. Thanks a lot. |
From this docs page,
https://golang.org/doc/install#extra_versions
Note: I ran all of these commands as root, this shouldn't be a permissions issue.
I attempted to install go1.12.17 via go 1.10.1, using the guide in the wiki.
I attempted to run
go get golang.org/dl/go1.12.17
, it completed without any message (error or otherwise), however it didn't seem to do anything.go1.12.17 download
gives mebash: go1.12.17: command not found
.which go1.12.17
comes back with no resultsgo version
shows that it's still runninggo version go1.10.1 linux/386
On a whim I tried installing something older thinking maybe this command only works for downgrading go, but attempting to install go1.9.1 gave me the same result.
If it matters, go1.10.1 is from apt, I'm running Ubuntu 18.04; the
go get
method for installing multiple go versions sounds handy but I'm OK with uninstalling the official go version from Canonical and getting a different version from a PPA, that was my fix for this previously.What operating system and processor architecture are you using (
go env
)?go env
OutputThe text was updated successfully, but these errors were encountered: