blob: 51c8a00a435321c63183214ac11faaa265449f95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# go.dev/issue/60028: use semver sort in exclude block in 1.21
cp $WORK/go.mod.badfmtexclude go.mod
go mod edit -go=1.20
cmp go.mod $WORK/go.mod.goodfmtexclude120
go mod edit -go=1.21
cmp go.mod $WORK/go.mod.goodfmtexclude121
-- $WORK/go.mod.badfmtexclude --
module x.x/y/z
exclude (
x.1 v1.11.0
x.1 v1.10.0
x.1 v1.9.0
)
-- $WORK/go.mod.goodfmtexclude120 --
module x.x/y/z
go 1.20
exclude (
x.1 v1.10.0
x.1 v1.11.0
x.1 v1.9.0
)
-- $WORK/go.mod.goodfmtexclude121 --
module x.x/y/z
go 1.21
exclude (
x.1 v1.9.0
x.1 v1.10.0
x.1 v1.11.0
)
|