sh_binary to return RunEnvironmentInfo provider #23658
Labels
team-Starlark-Integration
Issues involving Bazel's integration with Starlark, excluding builtin symbols
type: feature request
untriaged
Description of the feature request:
When introspecting and wrapping sh_binary rules, there is no way to extract the various run informations such as env var, args, etc which limits the possible integration with wrappers that would like to augment those informations
Which category does this issue belong to?
No response
What underlying problem are you trying to solve with this feature?
Using rules_itest in order to run integration tests, it allows to supplement the RunEnvironmentInfo of the target but in the case of sh_binary, the args and env attributes needs to be redeclared and copied which leads to maintenance pain due to the duplication and a bad developer experience.
Which operating system are you running Bazel on?
MacOS aarch64
What is the output of
bazel info release
?release 7.3.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
The only issue I found referring to this is #7364 but is not quite what I'm looking for
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: