Skip to content

Commit

Permalink
Merge pull request #377 from rabbitmq/bazel-otp-26-dialyzer
Browse files Browse the repository at this point in the history
Fix dialyzer warnings in bazel for OTP 26
  • Loading branch information
mkuratczyk committed May 22, 2023
2 parents c509c45 + 65f74cd commit 0422ef4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 20 deletions.
7 changes: 1 addition & 6 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ build --local_test_jobs=1
build --flag_alias=erlang_home=@rules_erlang//:erlang_home
build --flag_alias=erlang_version=@rules_erlang//:erlang_version

build --extra_toolchains="@erlang_config//24:toolchain"
build --extra_toolchains="@erlang_config//24:toolchain2"
build --extra_toolchains="@erlang_config//25:toolchain"
build --extra_toolchains="@erlang_config//25:toolchain2"
build --extra_toolchains="@erlang_config//26:toolchain"
build --extra_toolchains="@erlang_config//26:toolchain2"
build --extra_toolchains="@erlang_config//..."

build:buildbuddy --bes_results_url=https://app.buildbuddy.io/invocation/
build:buildbuddy --bes_backend=grpcs://remote.buildbuddy.io
Expand Down
22 changes: 9 additions & 13 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,20 @@ test_erlang_app(
xref()

plt(
name = "base_plt",
apps = DEFAULT_PLT_APPS + EXTRA_APPS + [
"eunit",
"syntax_tools",
"erts",
"kernel",
"stdlib",
"common_test",
"inets",
name = "deps_plt",
apps = DEFAULT_PLT_APPS + [
"compiler",
"tools",
"runtime_tools",
"mnesia",
"ssh",
"ssl",
"eunit",
],
deps = DEPS,
for_target = ":erlang_app",
)

dialyze(
plt = ":base_plt",
size = "small",
plt = ":deps_plt",
)

ra_suites()
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module(

bazel_dep(
name = "rules_erlang",
version = "3.9.14",
version = "3.10.2",
)

erlang_config = use_extension(
Expand Down

0 comments on commit 0422ef4

Please sign in to comment.