...

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

Documentation: cmd/go/testdata/script

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

View as plain text