...

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

Documentation: cmd/go/testdata/script

     1# Test that local replacements work even with dummy module names.
     2# golang.org/issue/24100.
     3
     4env GO111MODULE=on
     5
     6cd x/y
     7go list -f '{{.Dir}}' zz
     8stdout x[/\\]z$
     9
    10-- x/y/go.mod --
    11module x/y
    12require zz v1.0.0
    13replace zz v1.0.0 => ../z
    14
    15-- x/y/y.go --
    16package y
    17import _ "zz"
    18
    19-- x/z/go.mod --
    20module x/z
    21
    22-- x/z/z.go --
    23package z

View as plain text