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

remove deprecated usage of github.com/golang/protobuf/protoc-gen-go/generator #1213

Merged

Conversation

yinzara
Copy link
Contributor

@yinzara yinzara commented Apr 17, 2020

The github.com/golang/protobuf/protoc-gen-go/generator package is now deprecated and causes warnings when used. This causes this plugin to fail when used with some protoc related tools (like prototool) as they expect all plugins to not write to stdout/stderr except for returning the generation results.

We only use the "CamelCase" function from that package so I just copied it into the template.go

@yinzara yinzara force-pushed the bugfix/deprecated-protobuf-usage branch from 3d0ca75 to 20d4eb5 Compare April 17, 2020 20:38
Copy link
Collaborator

@johanbrandhorst johanbrandhorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is perfect, thank you. You'll need to run the bazel script in CONTRIBUTING.md to fix the test (or just manually remove the old dependency).

@yinzara
Copy link
Contributor Author

yinzara commented Apr 21, 2020

Hmmm so now it's failing for a reason I have no idea about.

@johanbrandhorst
Copy link
Collaborator

Gorelease is failing because you're not up to date with master. Please rebase your branch. The bazel failure looks like a flaky test, unfortunately, I reran it.

@yinzara yinzara force-pushed the bugfix/deprecated-protobuf-usage branch from 2f46ff0 to aabefa2 Compare April 21, 2020 17:21
@yinzara
Copy link
Contributor Author

yinzara commented Apr 21, 2020

There. Fixed :)

@johanbrandhorst johanbrandhorst merged commit 84b3440 into grpc-ecosystem:master Apr 22, 2020
@johanbrandhorst
Copy link
Collaborator

Thanks for your contribution! Could you please cherry pick this against the v2 branch as well?

pull bot pushed a commit to BuildingRobotics/grpc-gateway that referenced this pull request Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants