bazel-skylib icon indicating copy to clipboard operation
bazel-skylib copied to clipboard

run_binary doesn't use target's RunEnvironmentInfo

Open dmivankov opened this issue 4 months ago • 1 comments

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

dmivankov avatar Aug 06 '25 10:08 dmivankov

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.

fmeum avatar Aug 06 '25 12:08 fmeum