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

     1  # 'go list -mod=vendor' should succeed even when go.mod contains redundant
     2  # requirements. Verifies #47565.
     3  go list -mod=vendor
     4  
     5  -- go.mod --
     6  module m
     7  
     8  go 1.17
     9  
    10  require example.com/m v0.0.0
    11  require example.com/m v0.0.0
    12  
    13  replace example.com/m v0.0.0 => ./m
    14  -- m/go.mod --
    15  module example.com/m
    16  
    17  go 1.17
    18  -- m/m.go --
    19  package m
    20  -- use.go --
    21  package use
    22  
    23  import _ "example.com/m"
    24  -- vendor/example.com/m/m.go --
    25  package m
    26  -- vendor/modules.txt --
    27  # example.com/m v0.0.0 => ./m
    28  ## explicit; go 1.17
    29  example.com/m
    30  

View as plain text