...

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

Documentation: cmd/go/testdata/script

     1# This test checks that "go mod tidy -x" print
     2# commands tidy executes.
     3# Verifies golang.org/issue/35849
     4
     5rm $GOPATH/pkg/mod/cache/download/rsc.io/quote
     6go mod tidy
     7! stderr 'get '$GOPROXY
     8
     9rm $GOPATH/pkg/mod/cache/download/rsc.io/quote
    10go mod tidy -x
    11stderr 'get '$GOPROXY
    12
    13-- go.mod --
    14module example.com/mod
    15
    16-- a.go --
    17package mod
    18import _ "rsc.io/quote"

View as plain text