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

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

View as plain text