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

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

View as plain text