...

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

Documentation: cmd/go/testdata/script

     1env GO111MODULE=off
     2
     3[!compiler:gc] skip
     4
     5go list -f '{{.Dir}}' vendor/golang.org/x/net/http2/hpack
     6stdout $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.
    10cd importnethttp
    11go list -deps -f '{{.ImportPath}} {{.Dir}}'
    12stdout ^vendor/golang.org/x/net/http2/hpack
    13stdout $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.
    19cd ../issue16333
    20go build .
    21
    22go list -deps -f '{{.ImportPath}} {{.Dir}}' .
    23stdout $GOPATH[/\\]src[/\\]vendor[/\\]golang.org[/\\]x[/\\]net[/\\]http2[/\\]hpack
    24! stdout $GOROOT[/\\]src[/\\]vendor
    25
    26go list -test -deps -f '{{.ImportPath}} {{.Dir}}' .
    27stdout $GOPATH[/\\]src[/\\]vendor[/\\]golang.org[/\\]x[/\\]net[/\\]http2[/\\]hpack
    28! stdout $GOROOT[/\\]src[/\\]vendor
    29
    30-- issue16333/issue16333.go --
    31package vendoring17
    32
    33import _ "golang.org/x/net/http2/hpack"
    34-- issue16333/issue16333_test.go --
    35package vendoring17
    36
    37import _ "testing"
    38import _ "golang.org/x/net/http2/hpack"
    39-- importnethttp/http.go --
    40package importnethttp
    41
    42import _ "net/http"
    43-- $GOPATH/src/vendor/golang.org/x/net/http2/hpack/hpack.go --
    44package hpack

View as plain text