forked from golang/vscode-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/goInstallTools: use
go list
to check upgradability
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 <[email protected]> Trust: Rebecca Stambler <[email protected]> Trust: Suzy Mueller <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Suzy Mueller <[email protected]>
- Loading branch information
Showing
5 changed files
with
203 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.