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

     1  # Commands in an old module with no go line and no toolchain line,
     2  # or with only a go line, should succeed.
     3  # (They should not fail due to the go.mod not being tidy.)
     4  
     5  # No go line, no toolchain line.
     6  go list
     7  
     8  # Old go line, no toolchain line.
     9  go mod edit -go=1.16
    10  go list
    11  
    12  go mod edit -go=1.20
    13  go list
    14  
    15  # New go line, no toolchain line, using same toolchain.
    16  env TESTGO_VERSION=1.21
    17  go mod edit -go=1.21
    18  go list
    19  
    20  # New go line, no toolchain line, using newer Go version.
    21  # (Until we need to update the go line, no toolchain addition.)
    22  env TESTGO_VERSION=1.21.0
    23  go list
    24  
    25  -- go.mod --
    26  module m
    27  -- p.go --
    28  package p
    29  

View as plain text