Help us shape the future of Go! Take the 2026 Go Developer Survey

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

     1  # Test that "go list -export" succeeds for overlay packages with source
     2  # files that don't exist on disk.
     3  
     4  env GOEXPERIMENT=golistexportnewformat
     5  
     6  go list -overlay overlay.json -export a.go
     7  
     8  -- overlay.json --
     9  {
    10      "Replace": {
    11          "a.go": "b.go"
    12      }
    13  }
    14  -- b.go --
    15  package p
    16  

View as plain text