Allow Bazel actions to see the SHELL variable.

Test: TH
Change-Id: I97ffe7ad84dfb8d58d0e6d022f73d97a73778129
This commit is contained in:
Rupert Shuttleworth 2021-04-02 20:09:51 +00:00
parent 5ad66aaf41
commit bf94d2fdba
1 changed files with 3 additions and 0 deletions

View File

@ -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.