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

     1  # Ensure that we generate a vendor/modules.txt file even when the only
     2  # requirements in go.mod are unused.  Regression test for
     3  # golang.org/issue/36580
     4  
     5  env GO111MODULE=on
     6  
     7  go mod vendor
     8  cmp go1.14-modules.txt vendor/modules.txt
     9  
    10  -- go.mod --
    11  module example.com/m
    12  go 1.14
    13  
    14  require example.com v1.0.0 // indirect
    15  -- go.sum --
    16  example.com v1.0.0/go.mod h1:WRiieAqDBb1hVdDXLLdxNtCDWNfehn7FWyPC5Oz2vB4=
    17  -- go1.14-modules.txt --
    18  # example.com v1.0.0
    19  ## explicit
    20  

View as plain text