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 install error: descriptorpb.Default_FileOptions_PhpGenericServices #544

Open
slobad123 opened this issue Oct 31, 2024 · 0 comments
Open

Comments

@slobad123
Copy link

Looking to install a version of this program that fixes this CVE related to the github.com/gogo/protobuf package: https://nvd.nist.gov/vuln/detail/CVE-2021-3121

The tip of master currently has the updated version of this library (v1.3.2) where the CVE is addressed.

However, installing this version yields the following error

go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@affddd4a

# github.com/golang/protobuf/protoc-gen-go/descriptor
go/pkg/mod/github.com/golang/protobuf@v1.5.3/protoc-gen-go/descriptor/descriptor.pb.go:106:61: undefined: descriptorpb.Default_FileOptions_PhpGenericServices

This thread implies the fix is to bump the github.com/golang/protobuf dependency version to v1.5.4 golang/protobuf#1596 (comment)

go build is successful after bumping the version to 1.5.4 in a local checkout.

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

No branches or pull requests

1 participant