...

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

Documentation: cmd/go/testdata/script

     1# Test support for go mod edit -toolchain to set toolchain to use
     2
     3env GOTOOLCHAIN=local
     4env GO111MODULE=on
     5
     6! grep toolchain go.mod
     7go mod edit -toolchain=go1.9
     8grep 'toolchain go1.9' go.mod
     9
    10go mod edit -toolchain=default
    11grep 'toolchain default' go.mod
    12
    13go mod edit -toolchain=none
    14! grep toolchain go.mod
    15
    16-- go.mod --
    17module m
    18go 1.8

View as plain text