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

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

View as plain text