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

     1  env TESTGO_VERSION=go1.500
     2  env TESTGO_VERSION_SWITCH=mismatch
     3  
     4  # go env GOMOD should not trigger a toolchain download
     5  cd $GOPATH/mod
     6  go env GOMOD
     7  stdout mod[/\\]go.mod
     8  ! stderr 'go: toolchain go1.500 invoked to provide go1.700'
     9  
    10  # go env GOWORK should not trigger a toolchain download
    11  cd $GOPATH/work
    12  go env GOWORK
    13  stdout work[/\\]go.work
    14  ! stderr 'go: toolchain go1.500 invoked to provide go1.700'
    15  
    16  -- $GOPATH/mod/go.mod --
    17  module example.com
    18  
    19  go 1.700
    20  
    21  -- $GOPATH/work/go.work --
    22  module example.com
    23  
    24  go 1.700

View as plain text