commit | 5a691927659d1057bb3be80087732b5df5889aca | [log] [tgz] |
---|---|---|
author | Bryan C. Mills <bcmills@google.com> | Fri Jul 24 17:43:55 2020 -0400 |
committer | Bryan C. Mills <bcmills@google.com> | Mon Aug 24 20:24:00 2020 +0000 |
tree | 22b4c659c5cca84e5f911e1375fb3aed6085a1df | |
parent | 5c76382762cfc34b7a7678668460f127fec4a35b [diff] |
cmd/go/internal/modload: drop requirements on excluded versions Previously, when we encountered an excluded version in any module's requirements, we would resolve it to the next higher version. Unfortunately, the meaning of “the next higher version” can change over time. Moreover, users who use 'exclude' directives normally either already require some higher version (using the 'exclude' directive to prune out invalid requirements from some intermediate version), or already require some lower version (using the 'exclude' directive to prevent 'go get -u' from upgrading to a known-bad version). In both of these cases, resolving an upgrade for the excluded version is needless work even in the best case: it adds work for the 'go' command when there is already a perfectly usable selected version of the module in the requirement graph. Instead, we now interpret the 'exclude' directive as dropping all references to the excluded version. This implements the approach described in https://golang.org/issue/36465#issuecomment-572694990. Fixes #36465 Updates #36460 Change-Id: Ibf0187daced417b4cc23b97125826778658e4b0f Reviewed-on: https://go-review.googlesource.com/c/go/+/244773 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
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 or load doc/install.html in your web browser 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 or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: 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.