...

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

Documentation: cmd/go/testdata/script

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

View as plain text