...

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

Documentation: cmd/go/testdata/script

     1env GO111MODULE=on
     2
     3go list -mod=vendor example.com/...
     4stdout ^example.com/x$
     5stdout ^example.com/x/y$
     6! stdout ^example.com/x/vendor
     7
     8-- go.mod --
     9module example.com/m
    10
    11-- vendor/modules.txt --
    12# example.com/x v0.0.0
    13example.com/x
    14# example.com/x/y v0.1.0
    15example.com/x/y
    16
    17-- vendor/example.com/x/go.mod --
    18module example.com/x
    19-- vendor/example.com/x/x.go --
    20package x
    21
    22-- vendor/example.com/x/y/go.mod --
    23module example.com/x/y
    24-- vendor/example.com/x/y/y.go --
    25package y
    26
    27-- vendor/example.com/x/vendor/z/z.go --
    28package z

View as plain text