<p dir="auto">The Go 1.5. vendoring feature means that a package importer is now logically a function of two variables: the import path, and additionally the directory in which the import declaration appears.</p>
<p dir="auto">The <code class="notranslate">go/types</code> <code class="notranslate">TestStdlib</code> test currently fails because the default importer does not support vendoring (and cannot without an API change).</p>
<p dir="auto">Investigate.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ go test -run Stdlib
--- FAIL: TestStdlib (5.75s)
    stdlib_test.go:196: /Users/gri/go/src/net/http/h2_bundle.go:3304:2: invalid operation: sc.hpackDecoder (variable of type *golang.org/x/net/http2/hpack.Decoder) has no field or method SetEmitFunc
    stdlib_test.go:196: /Users/gri/go/src/net/http/h2_bundle.go:3377:2: invalid operation: sc.hpackDecoder (variable of type *golang.org/x/net/http2/hpack.Decoder) has no field or method SetEmitFunc
    stdlib_test.go:196: /Users/gri/go/src/net/http/h2_bundle.go:4908:3: invalid operation: rl.hdec (variable of type *golang.org/x/net/http2/hpack.Decoder) has no field or method SetEmitFunc
    stdlib_test.go:196: /Users/gri/go/src/net/http/h2_bundle.go:4910:3: invalid operation: rl.hdec (variable of type *golang.org/x/net/http2/hpack.Decoder) has no field or method SetEmitFunc
FAIL
exit status 1"><pre class="notranslate"><code class="notranslate">$ go test -run Stdlib
--- FAIL: TestStdlib (5.75s)
    stdlib_test.go:196: /Users/gri/go/src/net/http/h2_bundle.go:3304:2: invalid operation: sc.hpackDecoder (variable of type *golang.org/x/net/http2/hpack.Decoder) has no field or method SetEmitFunc
    stdlib_test.go:196: /Users/gri/go/src/net/http/h2_bundle.go:3377:2: invalid operation: sc.hpackDecoder (variable of type *golang.org/x/net/http2/hpack.Decoder) has no field or method SetEmitFunc
    stdlib_test.go:196: /Users/gri/go/src/net/http/h2_bundle.go:4908:3: invalid operation: rl.hdec (variable of type *golang.org/x/net/http2/hpack.Decoder) has no field or method SetEmitFunc
    stdlib_test.go:196: /Users/gri/go/src/net/http/h2_bundle.go:4910:3: invalid operation: rl.hdec (variable of type *golang.org/x/net/http2/hpack.Decoder) has no field or method SetEmitFunc
FAIL
exit status 1
</code></pre></div>
<p dir="auto">May be as simple as providing build.AllowVendor when calling build.Import in go/internal/gcimporter/gcimporter.go.</p>