...

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
     5env GO111MODULE=on
     6
     7go mod vendor
     8cmp go1.14-modules.txt vendor/modules.txt
     9
    10-- go.mod --
    11module example.com/m
    12go 1.14
    13
    14require example.com v1.0.0 // indirect
    15-- go.sum --
    16example.com v1.0.0/go.mod h1:WRiieAqDBb1hVdDXLLdxNtCDWNfehn7FWyPC5Oz2vB4=
    17-- go1.14-modules.txt --
    18# example.com v1.0.0
    19## explicit

View as plain text