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

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

View as plain text