aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go.mod
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2021-05-06 14:01:20 -0400
committerRuss Cox <rsc@golang.org>2021-05-13 15:33:24 +0000
commitcde2d857fe1f13ade269e3f7d58c6c2379a53c50 (patch)
tree93ae8b9d97e274b6d8293aa3111228b4425fce06 /src/cmd/go.mod
parent2a61b3c59088115245d084d5ae07dd4be5fbe1b0 (diff)
downloadgo-cde2d857fe1f13ade269e3f7d58c6c2379a53c50.tar.gz
go-cde2d857fe1f13ade269e3f7d58c6c2379a53c50.zip
cmd/go: be less strict about go version syntax in dependency go.mod files
It is unclear what the future holds for the go line in go.mod files. Perhaps at some point we will switch to semver numbering. Perhaps at some point we will allow specifying minor versions or even betas and release candidates. Those kinds of changes are difficult today because the go line is parsed in dependency modules, meaning that older versions of the Go toolchain need to understand newer go lines. This CL makes that case - parsing a go line in a dependency's go.mod file - a bit more lax about how to find the version. It allows a leading v and any trailing non-digit-prefixed string after the MAJOR.MINOR section. There are no concrete plans to make use of any of these changes, but if in the future we want to make them, having a few Go releases under out belt that will accept the syntax in dependencies will make any changes significantly easier. Change-Id: I79bb84bba4b769048ac4b14d5c275eb9a3f270c4 Reviewed-on: https://go-review.googlesource.com/c/go/+/317690 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/go.mod')
-rw-r--r--src/cmd/go.mod2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go.mod b/src/cmd/go.mod
index c3617eea0b..88f5f2883a 100644
--- a/src/cmd/go.mod
+++ b/src/cmd/go.mod
@@ -7,7 +7,7 @@ require (
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639 // indirect
golang.org/x/arch v0.0.0-20210502124803-cbf565b21d1e
golang.org/x/crypto v0.0.0-20210503195802-e9a32991a82e // indirect
- golang.org/x/mod v0.4.3-0.20210504181020-67f1c1edc27a
+ golang.org/x/mod v0.4.3-0.20210512182355-6088ed88cecd
golang.org/x/sys v0.0.0-20210511113859-b0526f3d8744 // indirect
golang.org/x/term v0.0.0-20210503060354-a79de5458b56
golang.org/x/tools v0.1.1-0.20210505014545-7cab0ef2e9a5