Skip to content

proto: Pass in the plugin as tools to preserve runfiles#4514

Merged
fmeum merged 1 commit intobazel-contrib:masterfrom
DolceTriade:protocompiler
Nov 15, 2025
Merged

proto: Pass in the plugin as tools to preserve runfiles#4514
fmeum merged 1 commit intobazel-contrib:masterfrom
DolceTriade:protocompiler

Conversation

@DolceTriade
Copy link
Copy Markdown
Contributor

@DolceTriade DolceTriade commented Nov 14, 2025

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

The proto plugin should preserve runfiles so that bazel targets that rely on external data can find them. It does this by by running the plugin as a tool, which is correct because plugins are expected to be built and run using the exec configuration.

Which issues(s) does this PR fix?

Fixes #4513

The proto plugin should preserve runfiles so that bazel targets that
rely on external data can find them.

Fixes bazel-contrib#4513
@fmeum fmeum merged commit 38f9c87 into bazel-contrib:master Nov 15, 2025
1 check passed
@DolceTriade DolceTriade deleted the protocompiler branch November 15, 2025 20:57
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_proto_compiler does not preserve runfiles on the plugin

2 participants