aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_tidy_too_new.txt
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2023-05-20 16:53:13 -0400
committerGopher Robot <gobot@golang.org>2023-05-23 16:31:25 +0000
commit6c024a4cf13f66b9a65616491340b33e0f7b099d (patch)
treee959951505977bcb704f0afa1f14b94c684d00c0 /src/cmd/go/testdata/script/mod_tidy_too_new.txt
parent5ffdc1f15c66f4f31124a43c4bd9de94b9131e15 (diff)
downloadgo-6c024a4cf13f66b9a65616491340b33e0f7b099d.tar.gz
go-6c024a4cf13f66b9a65616491340b33e0f7b099d.zip
cmd/go/internal/gover: add new Go version package
Clean up Go version comparison. CL 494436 added an ad hoc version comparison for the toolchain switch. There are also other version comparisons scattered throughout the code, assuming that using semver.Compare with a "v" prefix gives the right answer. As we start to allow versions like "go 1.21rc1" in the go.mod file, those comparisons will not work properly. A future CL will need to inject Go versions into semver for use with MVS, so do what Bryan suggested in the review of CL 494436 and rewrite the comparison in terms of that conversion. For #57001. Change-Id: Ia1d441f1bc259874c6c1b3b9349bdf9823a707d4 Reviewed-on: https://go-review.googlesource.com/c/go/+/496735 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Russ Cox <rsc@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/go/testdata/script/mod_tidy_too_new.txt')
-rw-r--r--src/cmd/go/testdata/script/mod_tidy_too_new.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/mod_tidy_too_new.txt b/src/cmd/go/testdata/script/mod_tidy_too_new.txt
index 8c34a997c9..875cb7f9af 100644
--- a/src/cmd/go/testdata/script/mod_tidy_too_new.txt
+++ b/src/cmd/go/testdata/script/mod_tidy_too_new.txt
@@ -1,6 +1,8 @@
# https://golang.org/issue/46142: 'go mod tidy' should error out if the version
# in the go.mod file is newer than the most recent supported version.
+env GOTOOLCHAIN=local
+
cp go.mod go.mod.orig