Skip to content

Commit

Permalink
_compile_action should use the default shell environment when calling…
Browse files Browse the repository at this point in the history
… `ctx.action()`

Closes bazel-contrib#235

PiperOrigin-RevId: 205992233
  • Loading branch information
kalbasit authored and alexeagle committed Jul 25, 2018
1 parent a97c724 commit ed25ef3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def _compile_action(ctx, inputs, outputs, tsconfig_file, node_opts, description
mnemonic = mnemonic,
inputs = action_inputs,
outputs = action_outputs,
# Use the built-in shell environment
# Allow for users who set a custom shell that can locate standard binaries like tr and uname
# See https://github.com/NixOS/nixpkgs/issues/43955#issuecomment-407546331
use_default_shell_env = True,
arguments = arguments,
executable = ctx.executable.compiler,
execution_requirements = {
Expand Down

0 comments on commit ed25ef3

Please sign in to comment.