commit | 2a2f99eefb70a66ecb9560a61b5cf23a5ca02ecb | [log] [tgz] |
---|---|---|
author | Bryan C. Mills <bcmills@google.com> | Fri Feb 26 17:40:18 2021 -0500 |
committer | Bryan C. Mills <bcmills@google.com> | Tue Mar 02 20:29:03 2021 +0000 |
tree | 38ad7288a609da0ca3ff4fb7e8569a1dd98966f6 | |
parent | b65091c11d711ff3b01cd25393305410e1b0b377 [diff] |
cmd/go/internal/modload: do not resolve an arbitrary version for 'go list --versions' If we don't actually require the listed module, we previously implicitly resolved "latest", but also (erroneously) forgot to apply exclusions and retractions for it. But there is really no need to resolve "latest" in this case at all — now we omit the version from the reported module info entirely. Fixes #44296 Change-Id: Id595f52f597c7213bd65b73bf066a678d9e1d694 Reviewed-on: https://go-review.googlesource.com/c/go/+/297150 Trust: Bryan C. Mills <bcmills@google.com> Reviewed-by: Michael Matloob <matloob@golang.org>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://golang.org/doc/contribute.html.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.