...

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

Documentation: cmd/go/testdata/script

     1# This test checks that 'go mod download' produces no output for
     2# the main module (when specified implicitly) and for a module replaced
     3# with a file path.
     4# Verifies golang.org/issue/35505.
     5go mod download -json all
     6cmp stdout no-output
     7
     8-- go.mod --
     9module example.com/a
    10
    11require example.com/b v1.0.0
    12
    13replace example.com/b => ./local/b
    14-- local/b/go.mod --
    15module example.com/b
    16-- no-output --

View as plain text