...

Text file src/cmd/go/testdata/script/mod_exclude_go121.txt

Documentation: cmd/go/testdata/script

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

View as plain text