...

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

Documentation: cmd/go/testdata/script

     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.
     6go list
     7
     8# Old go line, no toolchain line.
     9go mod edit -go=1.16
    10go list
    11
    12go mod edit -go=1.20
    13go list
    14
    15# New go line, no toolchain line, using same toolchain.
    16env TESTGO_VERSION=1.21
    17go mod edit -go=1.21
    18go 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.)
    22env TESTGO_VERSION=1.21.0
    23go list
    24
    25-- go.mod --
    26module m
    27-- p.go --
    28package p

View as plain text