bazel-skylib
bazel-skylib copied to clipboard
run_binary doesn't use target's RunEnvironmentInfo
If say sh_binary target has env= set, then running target directly uses env, but under run_binary env= values are getting lost.
Looks related to https://github.com/bazelbuild/bazel-skylib/issues/409 but run_binary isn't covered there
This is expected, env is only meant for bazel test and run, it doesn't have an effect on a target if it is used as a tool in an action.