-
Notifications
You must be signed in to change notification settings - Fork 590
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
Migrate to google.golang.org/protobuf (v2) via protoc-gen-star v2 #783
Conversation
cc @elliotmjackson for visibility since this is my first contribution 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution and nudge @pdecks! you'll just want to revert your change to validate/validate.pb.go
and this will be good to go.
Great, thanks! I just pushed up that revert commit. |
Head branch was pushed to by a user without write access
Pardon the multiple pings -- the CI tests weren't running initially so I thought I needed re-approval. |
@pdecks feel free to run |
Thanks, @elliotmjackson ! It took me a minute to figure out how to work with Bazel. |
When this project is used in a repo that uses Gazelle, the build fails with the following error: #535 (comment) That error was introduced when protoc_gen_star was updated to v2 in #783 and `dependencies.bzl` was (I believe) manually updated. Should gazelle be used to update `dependencies.bzl`, it would choose `com_github_lyft_protoc_gen_star_v2` as a name for the repo, as I showed here: alexbozhenko#1 This PR updates all references to that repo to use the correct name, which is expected by Gazelle. PR was created with: ``` sed -i 's/com_github_lyft_protoc_gen_star/com_github_lyft_protoc_gen_star_v2/g' $(rg -l com_github_lyft_protoc_gen_star) ``` Co-authored-by: Chris Roche <github@rodaine.com>
protoc-gen-star/v2
migrated fromgithub.com/golang/protobuf
(v1) togoogle.golang.org/protobuf
(v2). This PR removes the underlying dependency ongithub.com/golang/protobuf
by upgrading toprotoc-gen-star/v2
.see changelog: lyft/protoc-gen-star@v0.6.2...v2.0.1