bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Make env on test rules override --test_env

Open keith opened this issue 1 year ago • 3 comments
trafficstars

Fixes https://github.com/bazelbuild/bazel/issues/14418

keith avatar May 16 '24 20:05 keith

hey @lberki, do you perhaps know if this ordering/overwriting was intentional or accidental?

With this PR, there might be a risk that a Starlark rule overwrites PATH variable or some other important variables. (or it might be a feature). Or I might be overthinking it.

comius avatar May 17 '24 05:05 comius

Doing some code archaeology (I went back as far as cl/146237448), it looks like this ordering was what Blaze did before it was Bazel and no one wanted to change the semantics for fear of breaking some legacy behavior.

lberki avatar May 17 '24 07:05 lberki

Doing some code archaeology (I went back as far as cl/146237448), it looks like this ordering was what Blaze did before it was Bazel and no one wanted to change the semantics for fear of breaking some legacy behavior.

Ok. So let's see if that's still there.

comius avatar May 17 '24 08:05 comius

@bazel-io flag

keith avatar May 21 '24 16:05 keith

@bazel-io fork 7.2.0

iancha1992 avatar May 21 '24 18:05 iancha1992