-
Notifications
You must be signed in to change notification settings - Fork 18k
website: go1.22.0.linux-amd64.tar.gz contains wrong go version (go1.21.4) #65837
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Please recheck. That seems incredibly unlikely and I can't reproduce it myself. You should have:
|
Additionally, check the GOTOOLCHAIN setting, as different versions may be reported based on this setting, despite the initially invoked
|
Strange, I tried again, same result. Here is the full terminal session:
|
@boutros |
Allright, as @gophun suspects I guess its due to my environmment: |
Case closed. Works now, after I run |
Thanks for your help :) |
This confusion is understandable - many Go users are probably unaware of GOTOOLCHAIN or how it works (#57001). Perhaps this is an indication something could be improved to prevent this confusion around which version is running future? I don't like noisy commands, but maybe outputting a single line like "switching to goN.NN.NN" would be clearer and beneficial overall. Or maybe Cc @rsc - for consideration. |
Go version
go1.21.4
Output of
go env
in your module/workspace:What did you do?
wget https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
tar -xzf go1.22.0.linux-amd64.tar.g
./go/bin/go version
What did you see happen?
go version go1.21.4 linux/amd64
What did you expect to see?
go version go1.22 linux/amd64
The text was updated successfully, but these errors were encountered: