Skip to content

Revert "Fail when expected files are not produced by protoc (#4287)" #4324

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

Merged
merged 3 commits into from
Apr 19, 2025

Conversation

linzhp
Copy link
Contributor

@linzhp linzhp commented Apr 19, 2025

What type of PR is this?
Bug fix

What does this PR do? Why is it needed?
It's common for a go_proto_library to include proto files with and without service definitions at the same time. In this case, the gRPC plugins are needed, but some gRPC plugins don't generate the grpc.pb.go files if there is no service definition.

Partially reverting #4287 to restore the previous behavior of creating an empty file

Which issues(s) does this PR fix?

Fixes #4317

Other notes for review

@linzhp linzhp requested review from fmeum and jayconrod April 19, 2025 18:52
Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
@linzhp
Copy link
Contributor Author

linzhp commented Apr 19, 2025

cc @r-hang

@linzhp linzhp enabled auto-merge (squash) April 19, 2025 20:31
@linzhp linzhp merged commit 66cd5f5 into bazel-contrib:master Apr 19, 2025
1 check passed
@linzhp linzhp deleted the protoc branch April 19, 2025 21:13
linzhp added a commit that referenced this pull request May 20, 2025
…4324)

**What type of PR is this?**
Bug fix


**What does this PR do? Why is it needed?**
It's common for a `go_proto_library` to include proto files with and
without service definitions at the same time. In this case, the gRPC
plugins are needed, but some gRPC plugins don't generate the grpc.pb.go
files if there is no service definition.

Partially reverting #4287 to restore the previous behavior of creating
an empty file

**Which issues(s) does this PR fix?**

Fixes #4317

**Other notes for review**

---------

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
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

Successfully merging this pull request may close these issues.

go-protoc-bin failed: error executing GoProtocGen command
2 participants