Black Lives Matter. Support the Equal Justice Initiative.

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

Documentation: cmd/go/testdata/script

     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  -- go1.14-modules.txt --
    16  # example.com v1.0.0
    17  ## explicit
    18  

View as plain text