|author||Bryan C. Mills <firstname.lastname@example.org>||Fri Jul 24 17:43:55 2020 -0400|
|committer||Bryan C. Mills <email@example.com>||Mon Aug 24 20:24:00 2020 +0000|
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 <firstname.lastname@example.org> TryBot-Result: Gobot Gobot <email@example.com> Reviewed-by: Michael Matloob <firstname.lastname@example.org> Reviewed-by: Jay Conrod <email@example.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
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/.
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.