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 build failed on the master branch #581

Closed
shafreeck opened this issue Mar 1, 2016 · 15 comments
Closed

Go build failed on the master branch #581

shafreeck opened this issue Mar 1, 2016 · 15 comments

Comments

@shafreeck
Copy link

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 ?

@iamqizhao
Copy link
Contributor

please rerun go get -u google.golang.org/grpc to get the latest updates in http2 package.

@shafreeck
Copy link
Author

OK , It works. Thanks !

@let4be
Copy link

let4be commented Jul 31, 2016

same issue, go get -u google.golang.org/grpc doesn't help
is there a stable version that supposed just to work?...

@iamqizhao
Copy link
Contributor

What go version do u use?

On Jul 31, 2016 8:34 AM, "Sergey F." [email protected] wrote:

same issue, go get -u google.golang.org/grpc doesn't help


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#581 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJpyLDY86ihs33glq9pPcusNmHKKRNAsks5qbMB2gaJpZM4HmGio
.

@let4be
Copy link

let4be commented Jul 31, 2016

go 1.6 linux

@treeder
Copy link

treeder commented Aug 7, 2016

Does this depend on Go 1.7 now or something? Updating doesn't help because it's still using MetaHeadersFrame:

func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) {

@tamird
Copy link
Contributor

tamird commented Aug 7, 2016

What's the issue with MetaHeadersFrame? No, grpc does not depend on 1.7.

Have you tried go get -u google.golang.org/grpc/...?

@treeder
Copy link

treeder commented Aug 7, 2016

Turns out I had to update golang.org/x/net (I think), then it built.

@chamilad
Copy link

I came across this error on go1.6.2 linux/amd64 on Ubuntu 16.04. Here's how I got it fixed, if someone comes across this issue after googling.

I tried go get -u google.golang.org/grpc. It didn't work because golang.org/x/net had uncommitted changes. git checkout -- . inside golang.org/x/net and repeated go get -u google.golang.org/grpc. This fixed it.

@sagikazarmark
Copy link
Contributor

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.

@ypapax
Copy link

ypapax commented Jul 7, 2017

cd $GOPATH/src/golang.org/x/net/http2 && git checkout master && git pull

helped me.

The head was detached there for some reason:

$ git status
HEAD detached at f09c466
nothing to commit, working directory clean

@timakin
Copy link

timakin commented Aug 16, 2017

In my case, library cache remains on glide project directory.
So I had to clean cache with glide cc before I entered glide up .

@KeKe-Li
Copy link

KeKe-Li commented Aug 24, 2017

[keke@localhost etcd]$ go build

google.golang.org/grpc/transport

../google.golang.org/grpc/transport/handler_server.go:220: undefined: http2.TrailerPrefix
../google.golang.org/grpc/transport/http2_client.go:1070: undefined: http2.MetaHeadersFrame
../google.golang.org/grpc/transport/http2_client.go:1191: undefined: http2.MetaHeadersFrame
../google.golang.org/grpc/transport/http2_server.go:232: undefined: http2.MetaHeadersFrame
../google.golang.org/grpc/transport/http2_server.go:404: undefined: http2.MetaHeadersFrame
../google.golang.org/grpc/transport/http_util.go:200: undefined: http2.MetaHeadersFrame
../google.golang.org/grpc/transport/http_util.go:465: f.fr.SetReuseFrames undefined (type *http2.Framer has no field or method SetReuseFrames)
../google.golang.org/grpc/transport/http_util.go:466: f.fr.ReadMetaHeaders undefined (type *http2.Framer has no field or method ReadMetaHeaders)
../google.golang.org/grpc/transport/http_util.go:596: f.fr.ErrorDetail undefined (type *http2.Framer has no field or method ErrorDetail)

ways such questions?

@dfawley
Copy link
Member

dfawley commented Aug 24, 2017

@KeKe-Li did you go get -u google.golang.org/grpc?

If so, try to repro with a clean GOPATH. The build is green, so there must be something wrong with your environment.

@KeKe-Li
Copy link

KeKe-Li commented Aug 25, 2017 via email

@lock lock bot locked as resolved and limited conversation to collaborators Sep 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests