summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-09-24 20:47:16 +0400
committerGitHub <noreply@github.com>2022-09-24 20:47:16 +0400
commit8ce0c2063ccbc8c964b936ce8421e17b5de351ec (patch)
treec7215736e960639ecc57b9379f36cda7aa92b077
parentafeb6851c9e011f70b174c1a4fd0b44c733b42b0 (diff)
downloadrabbitmq-server-git-8ce0c2063ccbc8c964b936ce8421e17b5de351ec.tar.gz
Filter out elixir compilation from local execution in bazel (#5869) (#5870)
(cherry picked from commit bf66d4f858d3376a24000045f80637801e2faf6a) Co-authored-by: Rin Kuryloski <kuryloskip@vmware.com>
-rw-r--r--bazel/elixir/elixir.bzl4
-rw-r--r--bazel/platforms/BUILD.bazel2
2 files changed, 5 insertions, 1 deletions
diff --git a/bazel/elixir/elixir.bzl b/bazel/elixir/elixir.bzl
index dcf80e9b34..d369dd1ee0 100644
--- a/bazel/elixir/elixir.bzl
+++ b/bazel/elixir/elixir.bzl
@@ -11,6 +11,9 @@ load(
def elixir_toolchain_external():
elixir_external(
name = "external_elixir_installation_ref",
+ target_compatible_with = [
+ Label("//bazel/platforms:elixir_external"),
+ ],
)
elixir_toolchain(
@@ -42,6 +45,7 @@ def elixir_toolchain_from_http_archive(
url = url,
strip_prefix = strip_prefix,
sha256 = sha256,
+ target_compatible_with = elixir_constraints,
)
elixir_toolchain(
diff --git a/bazel/platforms/BUILD.bazel b/bazel/platforms/BUILD.bazel
index 914b8cacd0..387aeeb1b7 100644
--- a/bazel/platforms/BUILD.bazel
+++ b/bazel/platforms/BUILD.bazel
@@ -70,7 +70,7 @@ platform(
platform(
name = "erlang_linux_git_master_platform",
constraint_values = [
- "@erlang_config//:erlang_git_master",
+ "@erlang_config//:erlang_master",
":elixir_1_14",
],
parents = ["@rbe//config:platform"],