Skip to content

Commit 5a2834f

Browse files
authored
Merge pull request rabbitmq#31 from rabbitmq/build-fixes
Correct the app_name in the bazel build
2 parents f4a2953 + d941768 commit 5a2834f

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

BUILD.bazel

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ gazelle(
3636
name = "gazelle",
3737
data = GAZELLE_ERLANG_RUNTIME_DEPS,
3838
extra_args = [
39+
"--app_name",
40+
module_name(),
3941
"--verbose",
4042
],
4143
gazelle = "@rules_erlang//gazelle:gazelle_erlang_binary",
@@ -110,7 +112,7 @@ erlang_app(
110112
)
111113

112114
alias(
113-
name = "rabbitmq-rtopic-exchange",
115+
name = "rabbitmq_rtopic_exchange",
114116
actual = ":erlang_app",
115117
visibility = ["//visibility:public"],
116118
)

app.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def all_beam_files(name = "all_beam_files"):
3232
name = "other_beam",
3333
srcs = ["src/rabbit_exchange_type_rtopic.erl"],
3434
hdrs = [":public_and_private_hdrs"],
35-
app_name = "rabbitmq-rtopic-exchange",
35+
app_name = "rabbitmq_rtopic_exchange",
3636
dest = "ebin",
3737
erlc_opts = "//:erlc_opts",
3838
deps = ["@rabbitmq-server//deps/rabbit_common:erlang_app"],
@@ -48,7 +48,7 @@ def all_test_beam_files(name = "all_test_beam_files"):
4848
testonly = True,
4949
srcs = ["src/rabbit_exchange_type_rtopic.erl"],
5050
hdrs = [":public_and_private_hdrs"],
51-
app_name = "rabbitmq-rtopic-exchange",
51+
app_name = "rabbitmq_rtopic_exchange",
5252
dest = "test",
5353
erlc_opts = "//:test_erlc_opts",
5454
deps = ["@rabbitmq-server//deps/rabbit_common:erlang_app"],
@@ -65,7 +65,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
6565
testonly = True,
6666
srcs = ["test/rabbit_exchange_type_rtopic_SUITE.erl"],
6767
outs = ["test/rabbit_exchange_type_rtopic_SUITE.beam"],
68-
app_name = "rabbitmq-rtopic-exchange",
68+
app_name = "rabbitmq_rtopic_exchange",
6969
erlc_opts = "//:test_erlc_opts",
7070
deps = ["@rabbitmq-server//deps/amqp_client:erlang_app"],
7171
)
@@ -74,7 +74,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
7474
testonly = True,
7575
srcs = ["test/rabbit_rtopic_perf.erl"],
7676
outs = ["test/rabbit_rtopic_perf.beam"],
77-
app_name = "rabbitmq-rtopic-exchange",
77+
app_name = "rabbitmq_rtopic_exchange",
7878
erlc_opts = "//:test_erlc_opts",
7979
deps = ["@rabbitmq-server//deps/rabbit_common:erlang_app"],
8080
)

moduleindex.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ rabbitmq_prelaunch:
402402
- rabbit_prelaunch_file
403403
- rabbit_prelaunch_sighandler
404404
- rabbit_prelaunch_sup
405+
rabbitmq_rtopic_exchange:
406+
- rabbit_exchange_type_rtopic
405407
ranch:
406408
- ranch
407409
- ranch_acceptor

0 commit comments

Comments
 (0)