Grpc-go: go get errors

Created on 1 Aug 2016  路  5Comments  路  Source: grpc/grpc-go

go get google.golang.org/grpc
# google.golang.org/grpc/transport
projects/go/src/google.golang.org/grpc/transport/handler_server.go:209: undefined: http2.TrailerPrefix
projects/go/src/google.golang.org/grpc/transport/http2_client.go:811: undefined: http2.MetaHeadersFrame
projects/go/src/google.golang.org/grpc/transport/http2_client.go:908: undefined: http2.MetaHeadersFrame
projects/go/src/google.golang.org/grpc/transport/http2_server.go:145: undefined: http2.MetaHeadersFrame
projects/go/src/google.golang.org/grpc/transport/http2_server.go:281: undefined: http2.MetaHeadersFrame
projects/go/src/google.golang.org/grpc/transport/http_util.go:379: f.fr.ReadMetaHeaders undefined (type *http2.Framer has no field or method ReadMetaHeaders)
projects/go/src/google.golang.org/grpc/transport/http_util.go:509: f.fr.ErrorDetail undefined (type *http2.Framer has no field or method ErrorDetail)
go version
go version go1.6.3 linux/amd64

Most helpful comment

Yes, welcome to Go's terrible package management.

All 5 comments

go get -u google.golang.org/grpc/...

interesting...

go get -u golang.org/x/net/http2
# cd /home/dev/projects/go/src/golang.org/x/net; git pull --ff-only
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>

package golang.org/x/net/http2: exit status 1

after I did

cd /home/dev/projects/go/src/golang.org/x/net
git pull origin master

it seems to fix the problem

go get -u google.golang.org/grpc/...
# cd /home/dev/projects/go/src/github.com/golang/protobuf; git pull --ff-only
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>

package github.com/golang/protobuf/proto: exit status 1
# cd /home/dev/projects/go/src/golang.org/x/net; git pull --ff-only
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>

package golang.org/x/net/context: exit status 1

Yes, welcome to Go's terrible package management.

A suggested fix from golang-nuts:

Delete the source from your $GOPATH and run go get again. There are other ways to fix the error but this is a simple solution.

https://groups.google.com/forum/#!topic/Golang-nuts/t9dLLVwsMlM

Was this page helpful?
0 / 5 - 0 ratings