Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
java_grpc_library.bzl: Support runfiles for protoc and the plugin
To support runfiles, the rule has to track more than just the executable. `files_to_run` has both the runfile and executable information (as separate fields), as does `files`, (combined as depset). So using those when able is inherently "safe." `files_to_run.executable` is only the executable, so does not propagate dependency information, so we make sure to pass `files` to the rule in addition. (`files_to_run.executable` is formatted into a string, so it wouldn't carry depset information anyway.) As originally noticed in cl/597962426
- Loading branch information