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

     1  env TESTGO_VERSION=go1.22.0
     2  
     3  ! go mod tidy -go=1.21
     4  stderr '^go: example.net/a@v0.1.0 requires go@1.22, but 1.21 is requested$'
     5  
     6  -- go.mod --
     7  module example
     8  
     9  go 1.22
    10  
    11  require example.net/a v0.1.0
    12  
    13  replace example.net/a v0.1.0 => ./a
    14  -- example.go --
    15  package example
    16  
    17  import "example.net/a"
    18  -- a/go.mod --
    19  module example.net/a
    20  
    21  go 1.22
    22  -- a/a.go --
    23  package a
    24  

View as plain text