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

     1  # Build
     2  env GO111MODULE=off
     3  go build vend/x
     4  ! stdout .
     5  ! stderr .
     6  
     7  -- vend/dir1/dir1.go --
     8  package dir1
     9  -- vend/subdir/bad.go --
    10  package subdir
    11  
    12  import _ "r"
    13  -- vend/subdir/good.go --
    14  package subdir
    15  
    16  import _ "p"
    17  -- vend/vendor/p/p.go --
    18  package p
    19  -- vend/vendor/q/q.go --
    20  package q
    21  -- vend/vendor/vend/dir1/dir2/dir2.go --
    22  package dir2
    23  -- vend/x/invalid/invalid.go --
    24  package invalid
    25  
    26  import "vend/x/invalid/vendor/foo"
    27  -- vend/x/vendor/p/p/p.go --
    28  package p
    29  
    30  import _ "notfound"
    31  -- vend/x/vendor/p/p.go --
    32  package p
    33  -- vend/x/vendor/r/r.go --
    34  package r
    35  -- vend/x/x.go --
    36  package x
    37  
    38  import _ "p"
    39  import _ "q"
    40  import _ "r"
    41  import _ "vend/dir1"      // not vendored
    42  import _ "vend/dir1/dir2" // vendored
    43  

View as plain text