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

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

View as plain text