grpc-go: Go build failed on the master branch
When I update to the latest commit , go build failed with errors
# google.golang.org/grpc/transport
transport/handler_server.go:203: undefined: http2.TrailerPrefix
transport/http2_client.go:678: undefined: http2.MetaHeadersFrame
transport/http2_client.go:750: undefined: http2.MetaHeadersFrame
transport/http2_server.go:140: undefined: http2.MetaHeadersFrame
transport/http2_server.go:253: undefined: http2.MetaHeadersFrame
transport/http_util.go:279: f.fr.ReadMetaHeaders undefined (type *http2.Framer has no field or method ReadMetaHeaders)
BTW: Do you have any plan to release a stable version ?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 10
- Comments: 15 (5 by maintainers)
please rerun go get -u google.golang.org/grpc to get the latest updates in http2 package.
Turns out I had to update
golang.org/x/net(I think), then it built.Don’t know why, but when using Glide, I had to manually update the lock file to use the latest commit. Even when I removed the lock file, it resolved the wrong commit hash. Subsequent
glide ups work though, it does not touch the (correct) commit hash.helped me.
The head was detached there for some reason:
What’s the issue with
MetaHeadersFrame? No, grpc does not depend on 1.7.Have you tried
go get -u google.golang.org/grpc/...?