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

using go mod tidy , there is error: google.golang.org/grpc/naming: module google.golang.org/grpc@latest found (v1.43.0), but does not contain package google.golang.org/grpc/naming #5072

Closed
ayanmw opened this issue Dec 22, 2021 · 2 comments

Comments

@ayanmw
Copy link

ayanmw commented Dec 22, 2021

NOTE: if you are reporting is a potential security vulnerability or a crash,
please follow our CVE process at
https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md instead of
filing an issue here.

Please see the FAQ in our main README.md, then answer the questions below
before submitting your issue.

What version of gRPC are you using?

v1.43.0

What version of Go are you using (go version)?

go1.17.0

What operating system (Linux, Windows, …) and version?

windows

What did you do?

$ go mod tidy
go: finding module for package google.golang.org/grpc/naming
icefire/confer imports
        github.com/spf13/viper/remote imports
        github.com/xordataexchange/crypt/config imports
        github.com/xordataexchange/crypt/backend/etcd imports
        github.com/coreos/etcd/client tested by
        github.com/coreos/etcd/client.test imports
        github.com/coreos/etcd/integration imports
        github.com/coreos/etcd/proxy/grpcproxy imports
        google.golang.org/grpc/naming: module google.golang.org/grpc@latest found (v1.43.0), but does not contain package google.golang.org/grpc/naming

What did you expect to see?

grpc v1.XXX is Ensures forward compatibility .

What did you see instead?

@ayanmw
Copy link
Author

ayanmw commented Dec 22, 2021

I try to fix problem with

replace google.golang.org/grpc => github.com/grpc/grpc-go v1.26.0

int the go.mod file.

But got next non-compatibility error:

        github.com/spf13/viper/remote imports
        github.com/sagikazarmark/crypt/config imports
        github.com/sagikazarmark/crypt/backend/firestore imports
        cloud.google.com/go/firestore imports
        cloud.google.com/go/firestore/apiv1 imports
        google.golang.org/api/transport/grpc imports
        google.golang.org/grpc/xds/googledirectpath: module google.golang.org/grpc@latest found (v1.43.0, replaced by github.com/grpc/grpc-go@v1.26.0), but does not contain package google.golang.org/grpc/xds/googledirectpath

IT IS VERY VERY VERY VERY VERY CONFUSE ME!!!!!!!!!!!

@dfawley
Copy link
Member

dfawley commented Dec 22, 2021

The naming package was deleted long ago. This was not a backward compatible change, but the package was marked as experimental, so it is a change that we reserve the right to make.

Whatever you are using that is (indirectly) using the naming package from grpc-go should either be updated in your go.mod (go get <whatever@whatever>) or needs to be updated. The direct import that requires this package is etcd, but it has been patched (many months ago) to no longer require it.

It's also possible you could force the etcd version to be higher in your go.mod, but I'm not sure if there are breaking changes in etcd that would make that infeasible. It would be best to just update all your dependencies.

@dfawley dfawley closed this as completed Dec 22, 2021
jamespettigrew added a commit to zendesk/go-replayers that referenced this issue Apr 21, 2022
Bumps httpreplay's dependencies to match the upstream repo. The
current dependency chain includes experimental packages that have been
deleted in later versions (see: grpc/grpc-go#5072 (comment)).

Slack: https://zendesk.slack.com/archives/CC43T25LH/p1650438342951989
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 2022
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

2 participants