Skip to content

Commit

Permalink
play-routes.bzl: use run() with use_default_shell_env to have access … (
Browse files Browse the repository at this point in the history
#50)

* play-routes.bzl: use run() with use_default_shell_env to have access to shell

When running on Nix we do not have access to default shell env if this
parameter is not set, thus failing root compilation.

* Remove spawn_strategy and genrule_strategy setting on CI from .bazelrc

This was causing failures after enabling use_default_shell_env in play_routes
rule.

* Revert "Remove spawn_strategy and genrule_strategy setting on CI from .bazelrc"

This reverts commit 2c49ee0.
  • Loading branch information
gergelyfabian authored Dec 2, 2021
1 parent 4e8eee9 commit 84d6b6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions play-routes/play-routes.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def _impl(ctx):
ctx.executable.play_routes_compiler.path,
] + args,
progress_message = "Compiling play routes",
use_default_shell_env = True,
executable = ctx.executable._play_route_helper,
tools = [ctx.executable.play_routes_compiler, ctx.executable._zipper]
)
Expand Down

0 comments on commit 84d6b6e

Please sign in to comment.