-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: include Go's base version in its devel version strings #44960
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
What string would be used for e.g. dev.go2go or dev.typeparams (prior to the merge), which don't appear to reflect any particular Go version? |
I don't think they'd behave in any special way. Since master is regularly merged into those, they'd report a very similar version to master; but instead of |
What about using the existing From the man page:
|
@knweiss this issue is about including Go's base version, which is not related to git or any of its tags. |
Friendly bump, as we only have five weeks left before the freeze, and I think the sooner we get this in the better :) It could have unexpected effects on the builders or other places that do custom builds of Go. |
I'll copy what I wrote on the CL, just s/Go 1.16/Go 1.17/:
It seems people are in favor of this direction and I'm not seeing problems raised, so moving the issue to NeedsFix. You'll need to ping Russ to update the -2 on the existing CL. |
Thanks, yes. This issue was forked from the original, and I forgot to update the commit message to link here. |
During the go1.17 dev cycle, the dev version string format was changed to include the go base version. See golang/go#44960. Recognize the new format. We can improve the version comparison logic utilizing this further but this does not utilize it yet. Fixes #1464 Change-Id: If2084ad9d86cb8b4c0f59c36b1347c0188452189 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/315853 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Suzy Mueller <suzmue@golang.org>
During the go1.17 dev cycle, the dev version string format was changed to include the go base version. See golang/go#44960. Recognize the new format. We can improve the version comparison logic utilizing this further but this does not utilize it yet. Fixes golang#1464 Change-Id: If2084ad9d86cb8b4c0f59c36b1347c0188452189 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/315853 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Suzy Mueller <suzmue@golang.org>
This is a continuation of #41116 (comment), since the original issue got closed by 1.16 having
go env GOVERSION
.@rsc said:
There's some more discussion in the comments afterward, such as using
-
instead of+
, to be semantically a bit closer to semver.https://go-review.googlesource.com/c/go/+/264938 is ready, for the most part. It only got a -2 since it was too late for 1.16.
I'm marking as NeedsDecision for 1.17, since I plan to work on it and there should be plenty of time left before the freeze.
cc @bcmills @jayconrod @heschik @dmitshur
The text was updated successfully, but these errors were encountered: