Skip to content

Commit

Permalink
Propagate esbuild no-remote-exec from tags (#2567)
Browse files Browse the repository at this point in the history
  • Loading branch information
siggisim authored Mar 30, 2021
1 parent 57d32c6 commit e056647
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/esbuild/esbuild.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,17 @@ def _esbuild_impl(ctx):
if ctx.attr.max_threads > 0:
env["GOMAXPROCS"] = str(ctx.attr.max_threads)

execution_requirements = {}
if "no-remote-exec" in ctx.attr.tags:
execution_requirements = {"no-remote-exec": "1"}

ctx.actions.run(
inputs = inputs,
outputs = outputs,
executable = ctx.executable.tool,
arguments = [args],
progress_message = "%s Javascript %s [esbuild]" % ("Bundling" if not ctx.attr.output_dir else "Splitting", entry_point.short_path),
execution_requirements = {
"no-remote-exec": "1",
},
execution_requirements = execution_requirements,
mnemonic = "esbuild",
env = env,
)
Expand Down

0 comments on commit e056647

Please sign in to comment.