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

     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  )
    35  

View as plain text