Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/types: std lib tests fail w/o x/net/http2 installed #13688

Closed
griesemer opened this issue Dec 18, 2015 · 3 comments
Closed

go/types: std lib tests fail w/o x/net/http2 installed #13688

griesemer opened this issue Dec 18, 2015 · 3 comments
Milestone

Comments

@griesemer
Copy link
Contributor

Investigate.

$ 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

May be as simple as providing build.AllowVendor when calling build.Import in go/internal/gcimporter/gcimporter.go.

@griesemer griesemer self-assigned this Dec 18, 2015
@griesemer griesemer added this to the Go1.6 milestone Dec 18, 2015
@bradfitz
Copy link
Contributor

There are two packages name "golang.org/x/net/http2/hpack" -- one in your golang.org/x/net checkout (your copy is old apparently and missing the SetEmitFunc method) and also the copy in stdlib (which is newer).

The test seems to be using a mix of them.

@extemporalgenome
Copy link
Contributor

Regarding the issue title, should it be "... w/o x/net/http2" ?

@griesemer griesemer changed the title go/types: std lib tests fail w/o x/tools/net/http2 installed go/types: std lib tests fail w/o x/net/http2 installed Dec 19, 2015
@gopherbot
Copy link

CL https://golang.org/cl/18308 mentions this issue.

@golang golang locked and limited conversation to collaborators Jan 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants