blob: 51c8a00a435321c63183214ac11faaa265449f95 [file] [log] [blame]
# 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
)