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

[Feature] Add a version upgrade instruction to the go executable file #49088

Closed
ggdream opened this issue Oct 20, 2021 · 1 comment
Closed

[Feature] Add a version upgrade instruction to the go executable file #49088

ggdream opened this issue Oct 20, 2021 · 1 comment

Comments

@ggdream
Copy link

ggdream commented Oct 20, 2021

Hello, the official team. I have been learning golang for two years now, and I am willing to upgrade to the latest stable version of gopher as soon as possible. So far, the upgrade instructions on the map for each new version released on official Twitter are similar to:

go install golang.org/dl/go1.17.2@latest
go1.17.2 download

If you want to change the installation location, you must modify the source code by the developer. This operation is very troublesome, so every time I delete the original GOROOT, and then unzip the new version to the original GOROOT directory.

In summary, I think if we can add a command such as go upgrade? We all have default or customized GOROOT, so we can directly overwrite the new file to the GOROOT directory when upgrading.

e.g.

go upgrade

# output:
# Your GOROOT is : ....
# Process: ....
# Finished it !!
# ${version} is installed in ${GOROOT}
@seankhliao
Copy link
Member

Duplicate of #27700

@seankhliao seankhliao marked this as a duplicate of #27700 Oct 20, 2021
@golang golang locked and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants