-
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
cmd/go: support @latest-prerelease
tag
#43141
Comments
Compare #42545 (comment). |
We are definitely in the second group - we want users to test the highest tagged version including prerelease. |
I don't think I would call it I also wonder if we should change |
I am fine with any names. I think we need to be careful when choosing a name commonly used for branch. No opinion on |
Change https://golang.org/cl/295418 mentions this issue: |
The extension has been querying the module proxy's /@v/list endpoint directly to get the list of available gopls version. This change changes the logic to use `go list -m` to get the version list. With go1.16, version retraction feature was added, and using the go command is more reliable way to learn about the retracted versions. So, use that. This change also fixes a bug in the tool installation that prevented Go nightly users from installing gopls prerelease versions when using 'Go: Update/Install Tools' command. If the go command supports `@latest-prerelease` tag, it would have been easier. But that's not available, so we run `go list -m --versions` and find the last version from Versions. Updates golang/go#43141 Change-Id: I67fe368cbce734e3b39e5352b3b3f6f08918562c Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/295418 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Trust: Rebecca Stambler <rstambler@golang.org> Trust: Suzy Mueller <suzmue@golang.org> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Suzy Mueller <suzmue@golang.org>
Quoting this specifically to agree with it. @bcmills this perhaps could have its own issue, independent of decisions taken here regarding |
From #42545 (comment)
Use case
We have a group of VSCode plugin users who opted in to use prerelease versions of tools. For the users, this will be convenient. Currently the plugin has its own logic to retrieve the list, parse versions, and choose the highest tagged version (including prerelease), but it would be better if this can be done with
go
command.The text was updated successfully, but these errors were encountered: