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

     1  env GO111MODULE=off
     2  
     3  [!compiler:gc] skip
     4  
     5  go list -f '{{.Dir}}' vendor/golang.org/x/net/http2/hpack
     6  stdout $GOPATH[/\\]src[/\\]vendor
     7  
     8  # A package importing 'net/http' should resolve its dependencies
     9  # to the package 'vendor/golang.org/x/net/http2/hpack' within GOROOT.
    10  cd importnethttp
    11  go list -deps -f '{{.ImportPath}} {{.Dir}}'
    12  stdout ^vendor/golang.org/x/net/http2/hpack
    13  stdout $GOROOT[/\\]src[/\\]vendor[/\\]golang.org[/\\]x[/\\]net[/\\]http2[/\\]hpack
    14  ! stdout $GOPATH[/\\]src[/\\]vendor
    15  
    16  # In the presence of $GOPATH/src/vendor/golang.org/x/net/http2/hpack,
    17  # a package in GOPATH importing 'golang.org/x/net/http2/hpack' should
    18  # resolve its dependencies in GOPATH/src.
    19  cd ../issue16333
    20  go build .
    21  
    22  go list -deps -f '{{.ImportPath}} {{.Dir}}' .
    23  stdout $GOPATH[/\\]src[/\\]vendor[/\\]golang.org[/\\]x[/\\]net[/\\]http2[/\\]hpack
    24  ! stdout $GOROOT[/\\]src[/\\]vendor
    25  
    26  go list -test -deps -f '{{.ImportPath}} {{.Dir}}' .
    27  stdout $GOPATH[/\\]src[/\\]vendor[/\\]golang.org[/\\]x[/\\]net[/\\]http2[/\\]hpack
    28  ! stdout $GOROOT[/\\]src[/\\]vendor
    29  
    30  -- issue16333/issue16333.go --
    31  package vendoring17
    32  
    33  import _ "golang.org/x/net/http2/hpack"
    34  -- issue16333/issue16333_test.go --
    35  package vendoring17
    36  
    37  import _ "testing"
    38  import _ "golang.org/x/net/http2/hpack"
    39  -- importnethttp/http.go --
    40  package importnethttp
    41  
    42  import _ "net/http"
    43  -- $GOPATH/src/vendor/golang.org/x/net/http2/hpack/hpack.go --
    44  package hpack
    45  

View as plain text