commit | 6ce8bb3f08e0e47592fe93e007071d86dcf214bb | [log] [tgz] |
---|---|---|
author | Tom Zierbock <tomzierbock@gmail.com> | Tue Dec 22 19:19:47 2020 +0100 |
committer | Jay Conrod <jayconrod@google.com> | Thu Jan 14 18:10:11 2021 +0000 |
tree | b8784b71df17a91cca4512b35432bf969160e428 | |
parent | bc388b264a244501debfb9caea700c6dcaff10e2 [diff] |
cmd/go: validating version format in mod edit Version strings set by -retract and -exclude are not canonicalized by go mod commands. This change adds validation to go mod edit to prevent invalid version strings from being added to the go.mod file. For golang/go#43280 Change-Id: I3708b7a09111a56effac1fe1165122772e3f2d75 Reviewed-on: https://go-review.googlesource.com/c/mod/+/279394 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> Trust: Michael Matloob <matloob@golang.org>
This repository holds packages for writing tools that work directly with Go module mechanics. That is, it is for direct manipulation of Go modules themselves.
It is NOT about supporting general development tools that need to do things like load packages in module mode. That use case, where modules are incidental rather than the focus, should remain in x/tools, specifically x/tools/go/packages.
The specific case of loading packages should still be done by invoking the go command, which remains the single point of truth for package loading algorithms.