-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
dl: No longer able to download a new Go toolchain from an old Go version #65599
Comments
as noted in the original issue, those versions are outside of our support window (2 most recent major releases) |
You're right that the original issue calls out the support window. However, I think it's worth making a distinction between the If this is working as intended, please consider adding a prominent note to https://go.dev/doc/manage-install documenting the minimum version. |
Agreed: while supporting only the 2 latest major versions for Go in general makes sense; for dl in particular this means that the only remaining use cases are:
(In other words, go dl stops working after 1 year (2 releases) / no upgrade on a system for one year means you have to reinstall Go.) Which is much more specific and reduced in scope than the previous behavior (effectively) where you could start from any old install and upgrade to latest. Maybe it could be worth maintaining Go compatibility for dl/ specifically for more versions, so that even users on older machines can profit from dl. The tradeoff being to have to keep a somewhat larger compatability for dl/ (not that many files?) |
Perhaps the team's intent is that dl is really for installing older versions of Go, not newer ones? It does seem worth clarifying. |
CC @golang/release |
consider #44329 (comment) where the use of GOVERSION may obsolete the use golang.org/dl (assuming a new enough starting version) |
As a result of https://go-review.googlesource.com/c/dl/+/540221, (golang/dl@2a66dfb)
go get golang.org/dl/go1.19.13
run from any Go version <= 1.16 now fails with:because
//+build
was removed and//go:build
is not supported on those versions.My CI pipeline run from an old Debian that tries to download a newer Go version now fails because of this change.
Originally posted by @delthas in #60268 (comment)
The text was updated successfully, but these errors were encountered: