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

failed to install protoc-gen-go-grpc@v1.5.0 #7448

Closed
ukai opened this issue Jul 29, 2024 · 13 comments
Closed

failed to install protoc-gen-go-grpc@v1.5.0 #7448

ukai opened this issue Jul 29, 2024 · 13 comments

Comments

@ukai
Copy link

ukai commented Jul 29, 2024

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?

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

go version go1.22.5 linux/amd64

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

linux

What did you do?

If possible, provide a recipe for reproducing the error.

$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5.0

What did you expect to see?

successfully installs protoc-gen-go-grpc

What did you see instead?

go: downloading google.golang.org/grpc v1.5.0
go: downloading google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.0
go: google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5.0 (in google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5.0):
        The go.mod file for the module providing named packages contains one or
        more replace directives. It must not contain directives that would cause
        it to be interpreted differently than if it were the main module.

@ukai ukai added the Type: Bug label Jul 29, 2024
@yurifedoseev
Copy link

+1,
I've rolled back to v1.4.0 (was latest before)

@ukai
Copy link
Author

ukai commented Jul 29, 2024

9671c4a

@artemis-my
Copy link

same here

@haruyama480
Copy link

haruyama480 commented Jul 29, 2024

reproduced on mac and linux.

This degradation occurs in all go install of v1.5.0 and latest.

@ray5273
Copy link

ray5273 commented Jul 29, 2024

Same here.

@hmtj99
Copy link

hmtj99 commented Jul 29, 2024

Facing same issue

@DriverX
Copy link

DriverX commented Jul 29, 2024

same

@hmtj99
Copy link

hmtj99 commented Jul 29, 2024

Reverting to v1.4.0 (instead of @latest) solves the issue for now

@narik41
Copy link

narik41 commented Jul 29, 2024

same issue with @latest

@github-charles-fraisse
Copy link

Same here with @latest, enforcing v1.4.0 to fix it

@saharatTiew
Copy link

Same here on wsl ubuntu

stevendpclark added a commit to hashicorp/vault that referenced this issue Jul 29, 2024
They introduced a replace statement within the go.mod file which
causes failures running go install protoc-gen-go-grpc@latest

Workaround for now is to pin to the previous version

See grpc/grpc-go#7448
stevendpclark added a commit to hashicorp/vault that referenced this issue Jul 29, 2024
They introduced a replace statement within the go.mod file which
causes failures running go install protoc-gen-go-grpc@latest

Workaround for now is to pin to the previous version

See grpc/grpc-go#7448
stevendpclark added a commit to hashicorp/vault that referenced this issue Jul 29, 2024
* Pin protoc-gen-go-grpc to 1.4.0

They introduced a replace statement within the go.mod file which
causes failures running go install protoc-gen-go-grpc@latest

Workaround for now is to pin to the previous version

See grpc/grpc-go#7448

* Add missing v to version v1.4.0 instead of 1.4.0 within tools/tools.sh
@ishustava
Copy link

It looks like the grpc module was only pulled in for testing. Do we really need it in this module or can we maybe avoid pulling in this dependency? This broke a lot of people who are trying to go install the latest module so if we can avoid this dependency, that would be great.

@dfawley
Copy link
Member

dfawley commented Jul 29, 2024

Sorry for the breakage. Pushed release 1.5.1 without the replace directive.

https://github.com/grpc/grpc-go/releases/tag/cmd%2Fprotoc-gen-go-grpc%2Fv1.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests