cannot find package "google.golang.org/grpc/transport"
See original GitHub issueGreetings! I am trying to start a grpcwebproxy
, but when I try go get -u github.com/improbable-eng/grpc-web/go/grpcwebproxy
i get:
root@f1b33891b086:/# go get -u github.com/improbable-eng/grpc-web/go/grpcwebproxy
package google.golang.org/grpc/transport: cannot find package "google.golang.org/grpc/transport" in any of:
/usr/lib/go-1.10/src/google.golang.org/grpc/transport (from $GOROOT)
/root/go/src/google.golang.org/grpc/transport (from $GOPATH)
I have the same result at MacOS and in ubuntu:latest
docker image (so I guess it will be the minimum reproduction).
Full log with go get -u -v github.com/improbable-eng/grpc-web/go/grpcwebproxy
root@f1b33891b086:/# go get -u -v github.com/improbable-eng/grpc-web/go/grpcwebproxy
github.com/improbable-eng/grpc-web (download)
github.com/grpc-ecosystem/go-grpc-middleware (download)
Fetching https://golang.org/x/net/context?go-get=1
Parsing meta tags from https://golang.org/x/net/context?go-get=1 (status code 200)
get "golang.org/x/net/context": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/context?go-get=1
get "golang.org/x/net/context": verifying non-authoritative meta tag
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
golang.org/x/net (download)
Fetching https://google.golang.org/grpc?go-get=1
Parsing meta tags from https://google.golang.org/grpc?go-get=1 (status code 200)
get "google.golang.org/grpc": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc?go-get=1
google.golang.org/grpc (download)
Fetching https://golang.org/x/net/http2?go-get=1
Parsing meta tags from https://golang.org/x/net/http2?go-get=1 (status code 200)
get "golang.org/x/net/http2": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/http2?go-get=1
get "golang.org/x/net/http2": verifying non-authoritative meta tag
Fetching https://golang.org/x/net/http/httpguts?go-get=1
Parsing meta tags from https://golang.org/x/net/http/httpguts?go-get=1 (status code 200)
get "golang.org/x/net/http/httpguts": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/http/httpguts?go-get=1
get "golang.org/x/net/http/httpguts": verifying non-authoritative meta tag
Fetching https://golang.org/x/net/idna?go-get=1
Parsing meta tags from https://golang.org/x/net/idna?go-get=1 (status code 200)
get "golang.org/x/net/idna": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/idna?go-get=1
get "golang.org/x/net/idna": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/secure/bidirule?go-get=1
Parsing meta tags from https://golang.org/x/text/secure/bidirule?go-get=1 (status code 200)
get "golang.org/x/text/secure/bidirule": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/secure/bidirule?go-get=1
get "golang.org/x/text/secure/bidirule": verifying non-authoritative meta tag
Fetching https://golang.org/x/text?go-get=1
Parsing meta tags from https://golang.org/x/text?go-get=1 (status code 200)
golang.org/x/text (download)
Fetching https://golang.org/x/text/transform?go-get=1
Parsing meta tags from https://golang.org/x/text/transform?go-get=1 (status code 200)
get "golang.org/x/text/transform": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/transform?go-get=1
get "golang.org/x/text/transform": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/unicode/bidi?go-get=1
Parsing meta tags from https://golang.org/x/text/unicode/bidi?go-get=1 (status code 200)
get "golang.org/x/text/unicode/bidi": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/unicode/bidi?go-get=1
get "golang.org/x/text/unicode/bidi": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/unicode/norm?go-get=1
Parsing meta tags from https://golang.org/x/text/unicode/norm?go-get=1 (status code 200)
get "golang.org/x/text/unicode/norm": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/unicode/norm?go-get=1
get "golang.org/x/text/unicode/norm": verifying non-authoritative meta tag
Fetching https://golang.org/x/net/http2/hpack?go-get=1
Parsing meta tags from https://golang.org/x/net/http2/hpack?go-get=1 (status code 200)
get "golang.org/x/net/http2/hpack": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/http2/hpack?go-get=1
get "golang.org/x/net/http2/hpack": verifying non-authoritative meta tag
Fetching https://golang.org/x/net/trace?go-get=1
Parsing meta tags from https://golang.org/x/net/trace?go-get=1 (status code 200)
get "golang.org/x/net/trace": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/trace?go-get=1
get "golang.org/x/net/trace": verifying non-authoritative meta tag
Fetching https://golang.org/x/net/internal/timeseries?go-get=1
Parsing meta tags from https://golang.org/x/net/internal/timeseries?go-get=1 (status code 200)
get "golang.org/x/net/internal/timeseries": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/internal/timeseries?go-get=1
get "golang.org/x/net/internal/timeseries": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/balancer?go-get=1
Parsing meta tags from https://google.golang.org/grpc/balancer?go-get=1 (status code 200)
get "google.golang.org/grpc/balancer": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/balancer?go-get=1
get "google.golang.org/grpc/balancer": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc?go-get=1
Parsing meta tags from https://google.golang.org/grpc?go-get=1 (status code 200)
Fetching https://google.golang.org/grpc/connectivity?go-get=1
Parsing meta tags from https://google.golang.org/grpc/connectivity?go-get=1 (status code 200)
get "google.golang.org/grpc/connectivity": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/connectivity?go-get=1
get "google.golang.org/grpc/connectivity": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/grpclog?go-get=1
Parsing meta tags from https://google.golang.org/grpc/grpclog?go-get=1 (status code 200)
get "google.golang.org/grpc/grpclog": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/grpclog?go-get=1
get "google.golang.org/grpc/grpclog": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/credentials?go-get=1
Parsing meta tags from https://google.golang.org/grpc/credentials?go-get=1 (status code 200)
get "google.golang.org/grpc/credentials": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/credentials?go-get=1
get "google.golang.org/grpc/credentials": verifying non-authoritative meta tag
github.com/golang/protobuf (download)
Fetching https://google.golang.org/grpc/resolver?go-get=1
Parsing meta tags from https://google.golang.org/grpc/resolver?go-get=1 (status code 200)
get "google.golang.org/grpc/resolver": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/resolver?go-get=1
get "google.golang.org/grpc/resolver": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/balancer/roundrobin?go-get=1
Parsing meta tags from https://google.golang.org/grpc/balancer/roundrobin?go-get=1 (status code 200)
get "google.golang.org/grpc/balancer/roundrobin": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/balancer/roundrobin?go-get=1
get "google.golang.org/grpc/balancer/roundrobin": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/balancer/base?go-get=1
Parsing meta tags from https://google.golang.org/grpc/balancer/base?go-get=1 (status code 200)
get "google.golang.org/grpc/balancer/base": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/balancer/base?go-get=1
get "google.golang.org/grpc/balancer/base": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/codes?go-get=1
Parsing meta tags from https://google.golang.org/grpc/codes?go-get=1 (status code 200)
get "google.golang.org/grpc/codes": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/codes?go-get=1
get "google.golang.org/grpc/codes": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/encoding?go-get=1
Parsing meta tags from https://google.golang.org/grpc/encoding?go-get=1 (status code 200)
get "google.golang.org/grpc/encoding": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/encoding?go-get=1
get "google.golang.org/grpc/encoding": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/encoding/proto?go-get=1
Parsing meta tags from https://google.golang.org/grpc/encoding/proto?go-get=1 (status code 200)
get "google.golang.org/grpc/encoding/proto": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/encoding/proto?go-get=1
get "google.golang.org/grpc/encoding/proto": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/internal?go-get=1
Parsing meta tags from https://google.golang.org/grpc/internal?go-get=1 (status code 200)
get "google.golang.org/grpc/internal": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/internal?go-get=1
get "google.golang.org/grpc/internal": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/internal/backoff?go-get=1
Parsing meta tags from https://google.golang.org/grpc/internal/backoff?go-get=1 (status code 200)
get "google.golang.org/grpc/internal/backoff": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/internal/backoff?go-get=1
get "google.golang.org/grpc/internal/backoff": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/internal/grpcrand?go-get=1
Parsing meta tags from https://google.golang.org/grpc/internal/grpcrand?go-get=1 (status code 200)
get "google.golang.org/grpc/internal/grpcrand": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/internal/grpcrand?go-get=1
get "google.golang.org/grpc/internal/grpcrand": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/internal/channelz?go-get=1
Parsing meta tags from https://google.golang.org/grpc/internal/channelz?go-get=1 (status code 200)
get "google.golang.org/grpc/internal/channelz": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/internal/channelz?go-get=1
get "google.golang.org/grpc/internal/channelz": verifying non-authoritative meta tag
Fetching https://golang.org/x/sys/unix?go-get=1
Parsing meta tags from https://golang.org/x/sys/unix?go-get=1 (status code 200)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
Fetching https://golang.org/x/sys?go-get=1
Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
golang.org/x/sys (download)
Fetching https://google.golang.org/grpc/internal/envconfig?go-get=1
Parsing meta tags from https://google.golang.org/grpc/internal/envconfig?go-get=1 (status code 200)
get "google.golang.org/grpc/internal/envconfig": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/internal/envconfig?go-get=1
get "google.golang.org/grpc/internal/envconfig": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/internal/transport?go-get=1
Parsing meta tags from https://google.golang.org/grpc/internal/transport?go-get=1 (status code 200)
get "google.golang.org/grpc/internal/transport": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/internal/transport?go-get=1
get "google.golang.org/grpc/internal/transport": verifying non-authoritative meta tag
Fetching https://google.golang.org/genproto/googleapis/rpc/status?go-get=1
Parsing meta tags from https://google.golang.org/genproto/googleapis/rpc/status?go-get=1 (status code 200)
get "google.golang.org/genproto/googleapis/rpc/status": found meta tag get.metaImport{Prefix:"google.golang.org/genproto", VCS:"git", RepoRoot:"https://github.com/google/go-genproto"} at https://google.golang.org/genproto/googleapis/rpc/status?go-get=1
get "google.golang.org/genproto/googleapis/rpc/status": verifying non-authoritative meta tag
Fetching https://google.golang.org/genproto?go-get=1
Parsing meta tags from https://google.golang.org/genproto?go-get=1 (status code 200)
google.golang.org/genproto (download)
Fetching https://google.golang.org/grpc/keepalive?go-get=1
Parsing meta tags from https://google.golang.org/grpc/keepalive?go-get=1 (status code 200)
get "google.golang.org/grpc/keepalive": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/keepalive?go-get=1
get "google.golang.org/grpc/keepalive": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/metadata?go-get=1
Parsing meta tags from https://google.golang.org/grpc/metadata?go-get=1 (status code 200)
get "google.golang.org/grpc/metadata": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/metadata?go-get=1
get "google.golang.org/grpc/metadata": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/peer?go-get=1
Parsing meta tags from https://google.golang.org/grpc/peer?go-get=1 (status code 200)
get "google.golang.org/grpc/peer": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/peer?go-get=1
get "google.golang.org/grpc/peer": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/stats?go-get=1
Parsing meta tags from https://google.golang.org/grpc/stats?go-get=1 (status code 200)
get "google.golang.org/grpc/stats": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/stats?go-get=1
get "google.golang.org/grpc/stats": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/status?go-get=1
Parsing meta tags from https://google.golang.org/grpc/status?go-get=1 (status code 200)
get "google.golang.org/grpc/status": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/status?go-get=1
get "google.golang.org/grpc/status": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/tap?go-get=1
Parsing meta tags from https://google.golang.org/grpc/tap?go-get=1 (status code 200)
get "google.golang.org/grpc/tap": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/tap?go-get=1
get "google.golang.org/grpc/tap": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/naming?go-get=1
Parsing meta tags from https://google.golang.org/grpc/naming?go-get=1 (status code 200)
get "google.golang.org/grpc/naming": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/naming?go-get=1
get "google.golang.org/grpc/naming": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/resolver/dns?go-get=1
Parsing meta tags from https://google.golang.org/grpc/resolver/dns?go-get=1 (status code 200)
get "google.golang.org/grpc/resolver/dns": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/resolver/dns?go-get=1
get "google.golang.org/grpc/resolver/dns": verifying non-authoritative meta tag
Fetching https://google.golang.org/grpc/resolver/passthrough?go-get=1
Parsing meta tags from https://google.golang.org/grpc/resolver/passthrough?go-get=1 (status code 200)
get "google.golang.org/grpc/resolver/passthrough": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/resolver/passthrough?go-get=1
get "google.golang.org/grpc/resolver/passthrough": verifying non-authoritative meta tag
github.com/sirupsen/logrus (download)
Fetching https://golang.org/x/crypto/ssh/terminal?go-get=1
Parsing meta tags from https://golang.org/x/crypto/ssh/terminal?go-get=1 (status code 200)
get "golang.org/x/crypto/ssh/terminal": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/ssh/terminal?go-get=1
get "golang.org/x/crypto/ssh/terminal": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
github.com/grpc-ecosystem/go-grpc-prometheus (download)
github.com/prometheus/client_golang (download)
github.com/beorn7/perks (download)
github.com/prometheus/client_model (download)
github.com/prometheus/common (download)
github.com/matttproud/golang_protobuf_extensions (download)
github.com/prometheus/procfs (download)
github.com/gorilla/websocket (download)
github.com/rs/cors (download)
github.com/mwitkow/go-conntrack (download)
github.com/mwitkow/grpc-proxy (download)
Fetching https://google.golang.org/grpc/transport?go-get=1
Parsing meta tags from https://google.golang.org/grpc/transport?go-get=1 (status code 200)
get "google.golang.org/grpc/transport": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc/transport?go-get=1
get "google.golang.org/grpc/transport": verifying non-authoritative meta tag
package google.golang.org/grpc/transport: cannot find package "google.golang.org/grpc/transport" in any of:
/usr/lib/go-1.10/src/google.golang.org/grpc/transport (from $GOROOT)
/root/go/src/google.golang.org/grpc/transport (from $GOPATH)
github.com/spf13/pflag (download)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:11
Top Results From Across the Web
1 - Stack Overflow
cannot find package google.golang.org/grpc · 2. You shouldn't need to rely on GOPATH anymore. Use go modules. Try reading Get started with Go...
Read more >gRPC-Go - fuchsia Git repositories
The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. For more information see...
Read more >transport - Go Packages
Package transport defines and implements message oriented communication channel to complete various transactions (e.g., an RPC).
Read more >modules usage help - Google Groups
go: finding google.golang.org/grpc/credentials latest ... cannot find module providing package k8s.io/api/admissionregistration/v1alpha1.
Read more >grpc/grpc - Gitter
google.golang.org/grpc/server.go:50:2: cannot find package "golang.org/x/net/http2" in any of: /usr/local/go/src/golang.org/x/net/http2 (from $GOROOT) ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, a workaround. Taking inspiration from some Docker code by @ryanjaeb, we can use
git clone
anddep
instead ofgo get
to make this work:I’ve commandeered that PR since it’s so simple and I think we need it sooner rather than later, thanks for your attention to this matter @mrsmidge 😃.