summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilip Kuryloski <kuryloskip@vmware.com>2022-05-17 14:07:16 +0200
committerPhilip Kuryloski <kuryloskip@vmware.com>2022-06-08 14:04:53 +0200
commit327f075d57d5184187e4bd9edba9ae9835d162c9 (patch)
tree839e90f7259ef43d64129c2b534050b762a90211 /tools
parentf0b0a4f90870d8d54190580094345484ca019532 (diff)
downloadrabbitmq-server-git-327f075d57d5184187e4bd9edba9ae9835d162c9.tar.gz
Make rabbitmq-server work with rules_erlang 3
Also rework elixir dependency handling, so we no longer rely on mix to fetch the rabbitmq_cli deps Also: - Specify ra version with a commit rather than a branch - Fixup compilation options for erlang 23 - Add missing ra reference in MODULE.bazel - Add missing flag in oci.yaml - Reduce bazel rbe jobs to try to save memory - Use bazel built erlang for erlang git master tests - Use the same cache for all the workflows but windows - Avoid using `mix local.hex --force` in elixir rules - Fetching seems blocked in CI, and this should reduce hex api usage in all builds, which is always nice - Remove xref and dialyze tags since rules_erlang 3 includes them in the defaults
Diffstat (limited to 'tools')
-rw-r--r--tools/erlang_ls.bzl13
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/erlang_ls.bzl b/tools/erlang_ls.bzl
index f767255ce2..2dbdea821b 100644
--- a/tools/erlang_ls.bzl
+++ b/tools/erlang_ls.bzl
@@ -1,9 +1,12 @@
-load("@rules_erlang//:erlang_home.bzl", "ErlangHomeProvider")
+load(
+ "@rules_erlang//tools:erlang_toolchain.bzl",
+ "erlang_dirs",
+)
def _impl(ctx):
out = ctx.actions.declare_file(ctx.label.name)
- erlang_home = ctx.attr._erlang_home[ErlangHomeProvider].path
+ (erlang_home, _, _) = erlang_dirs(ctx)
ctx.actions.write(
output = out,
@@ -32,7 +35,7 @@ plt_path: bazel-bin/deps/rabbit/.base_plt.plt
erlang_ls_config = rule(
implementation = _impl,
- attrs = {
- "_erlang_home": attr.label(default = "@rules_erlang//:erlang_home"),
- },
+ toolchains = [
+ "@rules_erlang//tools:toolchain_type",
+ ],
)