From bf94d2fdbad61650f6d657881b01ab2a4288a5ca Mon Sep 17 00:00:00 2001 From: Rupert Shuttleworth Date: Fri, 2 Apr 2021 20:09:51 +0000 Subject: [PATCH] Allow Bazel actions to see the SHELL variable. Test: TH Change-Id: I97ffe7ad84dfb8d58d0e6d022f73d97a73778129 --- ui/build/bazel.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/build/bazel.go b/ui/build/bazel.go index ec561d540..0ebfcd804 100644 --- a/ui/build/bazel.go +++ b/ui/build/bazel.go @@ -149,6 +149,9 @@ func runBazel(ctx Context, config Config) { cmd.Args = append(cmd.Args, "--action_env=PATH="+pathEnvValue) } + // Allow Bazel actions to see the SHELL variable (passed to Bazel above) + cmd.Args = append(cmd.Args, "--action_env=SHELL") + // Append custom build flags to the Bazel command. Changes to these flags // may invalidate Bazel's analysis cache. // These should be appended as the final args, so that they take precedence.