...

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

Documentation: cmd/go/testdata/script

     1# For issue #66403, go list -u -m all should not fail if a module
     2# with retractions has a newer version.
     3
     4env TESTGO_VERSION=go1.21
     5env TESTGO_VERSION_SWITCH=switch
     6go list -u -m example.com/retract/newergoversion
     7stdout 'example.com/retract/newergoversion v1.0.0'
     8! stdout 'v1.2.0'
     9
    10-- go.mod --
    11module example.com/m
    12
    13go 1.22
    14
    15require example.com/retract/newergoversion v1.0.0
    16
    17-- main.go --
    18package main
    19
    20import _ "example.com/retract/newergoversion"

View as plain text