Follow up to #4884 addressing some --config=local issues

This commit is contained in:
Philip Kuryloski 2022-06-08 15:34:16 +02:00
parent c821890945
commit 105f017e85
2 changed files with 10 additions and 2 deletions

View File

@ -125,13 +125,21 @@ def _elixir_external_impl(ctx):
version_file = ctx.actions.declare_file(ctx.label.name + "_version")
(erlang_home, _, runfiles) = erlang_dirs(ctx)
ctx.actions.run_shell(
inputs = [],
inputs = runfiles.files,
outputs = [version_file],
command = """set -euo pipefail
{maybe_install_erlang}
export PATH="{erlang_home}"/bin:${{PATH}}
"{elixir_home}"/bin/iex --version > {version_file}
""".format(
maybe_install_erlang = maybe_install_erlang(ctx),
erlang_home = erlang_home,
elixir_home = elixir_home,
version_file = version_file.path,
),

View File

@ -37,7 +37,7 @@ platform(
"@rules_erlang//platforms:erlang_external",
":elixir_external",
],
parents = ["@rbe//config:platform"],
parents = ["@local_config_platform//:host"],
)
platform(