Skip to content

Commit 6a41be2

Browse files
dmitshurgopherbot
authored andcommitted
cmd: update vendored golang.org/x/mod
Pull in CL 492990. This teaches 'go mod tidy' and other go subcommands that write go.mod files to use semantic sort for exclude blocks, gated on said files declaring Go version 1.21 or higher. go get golang.org/x/mod@e7bea8f1d64f # includes CL 492990 go mod tidy go mod vendor Fixes #60028. Change-Id: Ia9342dcc23cd68de068a70657b59c25f69afa381 Reviewed-on: https://go-review.googlesource.com/c/go/+/494578 Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]>
1 parent 16a0b7f commit 6a41be2

File tree

5 files changed

+63
-5
lines changed

5 files changed

+63
-5
lines changed

src/cmd/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.21
55
require (
66
github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26
77
golang.org/x/arch v0.2.1-0.20230208145055-40c19ba4a7c5
8-
golang.org/x/mod v0.10.0
8+
golang.org/x/mod v0.10.1-0.20230517154618-e7bea8f1d64f
99
golang.org/x/sync v0.2.0
1010
golang.org/x/sys v0.8.0
1111
golang.org/x/term v0.5.0

src/cmd/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2 h1:rcanfLh
44
github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w=
55
golang.org/x/arch v0.2.1-0.20230208145055-40c19ba4a7c5 h1:UFbINK7+lzLJEIqCXPlzx05ivYhLQeXCkxW3SSH3f8Q=
66
golang.org/x/arch v0.2.1-0.20230208145055-40c19ba4a7c5/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
7-
golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk=
8-
golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
7+
golang.org/x/mod v0.10.1-0.20230517154618-e7bea8f1d64f h1:ghNt+qaUoQ453QdEj40jEN5kYz71m4aDEkk767JfeR0=
8+
golang.org/x/mod v0.10.1-0.20230517154618-e7bea8f1d64f/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
99
golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI=
1010
golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
1111
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# go.dev/issue/60028: use semver sort in exclude block in 1.21
2+
cp $WORK/go.mod.badfmtexclude go.mod
3+
go mod edit -go=1.20
4+
cmp go.mod $WORK/go.mod.goodfmtexclude120
5+
go mod edit -go=1.21
6+
cmp go.mod $WORK/go.mod.goodfmtexclude121
7+
8+
-- $WORK/go.mod.badfmtexclude --
9+
module x.x/y/z
10+
exclude (
11+
x.1 v1.11.0
12+
x.1 v1.10.0
13+
x.1 v1.9.0
14+
)
15+
-- $WORK/go.mod.goodfmtexclude120 --
16+
module x.x/y/z
17+
18+
go 1.20
19+
20+
exclude (
21+
x.1 v1.10.0
22+
x.1 v1.11.0
23+
x.1 v1.9.0
24+
)
25+
-- $WORK/go.mod.goodfmtexclude121 --
26+
module x.x/y/z
27+
28+
go 1.21
29+
30+
exclude (
31+
x.1 v1.9.0
32+
x.1 v1.10.0
33+
x.1 v1.11.0
34+
)

src/cmd/vendor/golang.org/x/mod/modfile/rule.go

Lines changed: 25 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ golang.org/x/arch/arm/armasm
2323
golang.org/x/arch/arm64/arm64asm
2424
golang.org/x/arch/ppc64/ppc64asm
2525
golang.org/x/arch/x86/x86asm
26-
# golang.org/x/mod v0.10.0
26+
# golang.org/x/mod v0.10.1-0.20230517154618-e7bea8f1d64f
2727
## explicit; go 1.17
2828
golang.org/x/mod/internal/lazyregexp
2929
golang.org/x/mod/modfile

0 commit comments

Comments
 (0)