Skip to content

Commit

Permalink
bazel run gazelle
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed May 23, 2024
1 parent 0caa0c7 commit 75077e4
Show file tree
Hide file tree
Showing 22 changed files with 54 additions and 55 deletions.
4 changes: 2 additions & 2 deletions deps/rabbit/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ rabbitmq_app(
priv = [":priv"],
deps = [
"//deps/amqp10_common:erlang_app",
"//deps/khepri:erlang_app",
"//deps/khepri_mnesia_migration:erlang_app",
"//deps/rabbit_common:erlang_app",
"//deps/rabbitmq_prelaunch:erlang_app",
"@cuttlefish//:erlang_app",
"@gen_batch_server//:erlang_app",
"@khepri//:erlang_app",
"@khepri_mnesia_migration//:erlang_app",
"@observer_cli//:erlang_app",
"@osiris//:erlang_app",
"@ra//:erlang_app",
Expand Down
30 changes: 13 additions & 17 deletions deps/rabbit/app.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ def all_beam_files(name = "all_beam_files"):
erlc_opts = "//:erlc_opts",
deps = [
"//deps/amqp10_common:erlang_app",
"//deps/khepri:erlang_app",
"//deps/khepri_mnesia_migration:erlang_app",
"//deps/rabbit_common:erlang_app",
"@khepri//:erlang_app",
"@khepri_mnesia_migration//:erlang_app",
"@ra//:erlang_app",
"@ranch//:erlang_app",
"@stdout_formatter//:erlang_app",
Expand Down Expand Up @@ -525,9 +525,9 @@ def all_test_beam_files(name = "all_test_beam_files"):
erlc_opts = "//:test_erlc_opts",
deps = [
"//deps/amqp10_common:erlang_app",
"//deps/khepri:erlang_app",
"//deps/khepri_mnesia_migration:erlang_app",
"//deps/rabbit_common:erlang_app",
"@khepri//:erlang_app",
"@khepri_mnesia_migration//:erlang_app",
"@ra//:erlang_app",
"@ranch//:erlang_app",
"@stdout_formatter//:erlang_app",
Expand Down Expand Up @@ -884,7 +884,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/clustering_management_SUITE.beam"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/amqp_client:erlang_app", "//deps/rabbitmq_ct_helpers:erlang_app"],
deps = ["//deps/amqp_client:erlang_app"],
)
erlang_bytecode(
name = "test_clustering_utils_beam",
Expand Down Expand Up @@ -954,7 +954,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/definition_import_SUITE.beam"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/rabbit_common:erlang_app", "//deps/rabbitmq_ct_helpers:erlang_app"],
deps = ["//deps/rabbitmq_ct_helpers:erlang_app"],
)
erlang_bytecode(
name = "deprecated_features_SUITE_beam_files",
Expand Down Expand Up @@ -1033,7 +1033,6 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/feature_flags_v2_SUITE.beam"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/rabbit_common:erlang_app"],
)
erlang_bytecode(
name = "feature_flags_with_unpriveleged_user_SUITE_beam_files",
Expand Down Expand Up @@ -1140,7 +1139,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/peer_discovery_classic_config_SUITE.beam"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/amqp_client:erlang_app", "//deps/rabbitmq_ct_helpers:erlang_app"],
deps = ["//deps/rabbitmq_ct_helpers:erlang_app"],
)
erlang_bytecode(
name = "peer_discovery_dns_SUITE_beam_files",
Expand Down Expand Up @@ -1371,7 +1370,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
testonly = True,
srcs = ["test/rabbit_fifo_dlx_SUITE.erl"],
outs = ["test/rabbit_fifo_dlx_SUITE.beam"],
hdrs = ["src/rabbit_fifo.hrl", "src/rabbit_fifo_dlx.hrl"],
hdrs = ["src/rabbit_fifo.hrl"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/rabbit_common:erlang_app"],
Expand Down Expand Up @@ -1477,7 +1476,6 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/rabbitmqctl_shutdown_SUITE.beam"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/amqp_client:erlang_app"],
)
erlang_bytecode(
name = "signal_handling_SUITE_beam_files",
Expand Down Expand Up @@ -1521,7 +1519,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/term_to_binary_compat_prop_SUITE.beam"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/rabbit_common:erlang_app", "@proper//:erlang_app"],
deps = ["@proper//:erlang_app"],
)
erlang_bytecode(
name = "test_channel_operation_timeout_test_queue_beam",
Expand Down Expand Up @@ -1823,7 +1821,6 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
testonly = True,
srcs = ["test/unit_gm_SUITE.erl"],
outs = ["test/unit_gm_SUITE.beam"],
hdrs = ["include/gm_specs.hrl"],
app_name = "rabbit",
beam = ["ebin/gm.beam"],
erlc_opts = "//:test_erlc_opts",
Expand Down Expand Up @@ -2007,7 +2004,6 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/rabbit_db_msup_SUITE.beam"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/rabbit_common:erlang_app"],
)
erlang_bytecode(
name = "rabbit_db_policy_SUITE_beam_files",
Expand Down Expand Up @@ -2088,7 +2084,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/quorum_queue_member_reconciliation_SUITE.beam"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/amqp_client:erlang_app", "//deps/rabbitmq_ct_helpers:erlang_app"],
deps = ["//deps/amqp_client:erlang_app"],
)

erlang_bytecode(
Expand All @@ -2098,7 +2094,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/cluster_limit_SUITE.beam"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/amqp_client:erlang_app", "//deps/rabbitmq_ct_helpers:erlang_app"],
deps = ["//deps/amqp_client:erlang_app"],
)
erlang_bytecode(
name = "metadata_store_clustering_SUITE_beam_files",
Expand All @@ -2107,7 +2103,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/metadata_store_clustering_SUITE.beam"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/amqp_client:erlang_app", "//deps/rabbitmq_ct_helpers:erlang_app"],
deps = ["//deps/amqp_client:erlang_app"],
)
erlang_bytecode(
name = "metadata_store_migration_SUITE_beam_files",
Expand Down Expand Up @@ -2135,7 +2131,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/metadata_store_phase1_SUITE.beam"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/rabbit_common:erlang_app", "@khepri//:erlang_app"],
deps = ["//deps/khepri:erlang_app", "//deps/rabbit_common:erlang_app"],
)
erlang_bytecode(
name = "mc_unit_SUITE_beam_files",
Expand Down
1 change: 1 addition & 0 deletions deps/rabbitmq_amqp1_0/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ rabbitmq_app(
app_description = APP_DESCRIPTION,
app_name = APP_NAME,
beam_files = [":beam_files"],
extra_apps = ["rabbit"],
license_files = [":license_files"],
priv = [":priv"],
deps = [
Expand Down
2 changes: 0 additions & 2 deletions deps/rabbitmq_auth_backend_oauth2/app.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/add_uaa_key_command_SUITE.beam"],
app_name = "rabbitmq_auth_backend_oauth2",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/rabbit_common:erlang_app"],
)
erlang_bytecode(
name = "config_schema_SUITE_beam_files",
Expand Down Expand Up @@ -240,5 +239,4 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/add_signing_key_command_SUITE.beam"],
app_name = "rabbitmq_auth_backend_oauth2",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/rabbit_common:erlang_app"],
)
2 changes: 0 additions & 2 deletions deps/rabbitmq_aws/app.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
testonly = True,
srcs = ["test/rabbitmq_aws_json_tests.erl"],
outs = ["test/rabbitmq_aws_json_tests.beam"],
hdrs = ["include/rabbitmq_aws.hrl"],
app_name = "rabbitmq_aws",
erlc_opts = "//:test_erlc_opts",
)
Expand Down Expand Up @@ -168,7 +167,6 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
testonly = True,
srcs = ["test/rabbitmq_aws_xml_tests.erl"],
outs = ["test/rabbitmq_aws_xml_tests.beam"],
hdrs = ["include/rabbitmq_aws.hrl"],
app_name = "rabbitmq_aws",
erlc_opts = "//:test_erlc_opts",
)
4 changes: 2 additions & 2 deletions deps/rabbitmq_consistent_hash_exchange/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ rabbitmq_app(
license_files = [":license_files"],
priv = [":priv"],
deps = [
"//deps/khepri:erlang_app",
"//deps/khepri_mnesia_migration:erlang_app",
"//deps/rabbit:erlang_app",
"//deps/rabbit_common:erlang_app",
"@khepri//:erlang_app",
"@khepri_mnesia_migration//:erlang_app",
],
)

Expand Down
8 changes: 4 additions & 4 deletions deps/rabbitmq_consistent_hash_exchange/app.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def all_beam_files(name = "all_beam_files"):
dest = "ebin",
erlc_opts = "//:erlc_opts",
deps = [
"//deps/khepri:erlang_app",
"//deps/khepri_mnesia_migration:erlang_app",
"//deps/rabbit:erlang_app",
"//deps/rabbit_common:erlang_app",
"//deps/rabbitmq_cli:erlang_app",
"@khepri//:erlang_app",
"@khepri_mnesia_migration//:erlang_app",
],
)

Expand All @@ -47,11 +47,11 @@ def all_test_beam_files(name = "all_test_beam_files"):
dest = "test",
erlc_opts = "//:test_erlc_opts",
deps = [
"//deps/khepri:erlang_app",
"//deps/khepri_mnesia_migration:erlang_app",
"//deps/rabbit:erlang_app",
"//deps/rabbit_common:erlang_app",
"//deps/rabbitmq_cli:erlang_app",
"@khepri//:erlang_app",
"@khepri_mnesia_migration//:erlang_app",
],
)

Expand Down
1 change: 1 addition & 0 deletions deps/rabbitmq_ct_client_helpers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ rabbitmq_app(
hdrs = [":public_hdrs"],
app_name = "rabbitmq_ct_client_helpers",
beam_files = [":beam_files"],
extra_apps = ["rabbit_common"],
license_files = [":license_files"],
priv = [":priv"],
deps = [
Expand Down
1 change: 1 addition & 0 deletions deps/rabbitmq_ct_helpers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ rabbitmq_app(
hdrs = [":public_hdrs"],
app_name = "rabbitmq_ct_helpers",
beam_files = [":beam_files"],
extra_apps = ["inet_tcp_proxy"],
license_files = [":license_files"],
priv = [":priv"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions deps/rabbitmq_jms_topic_exchange/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ rabbitmq_app(
license_files = [":license_files"],
priv = [":priv"],
deps = [
"//deps/khepri:erlang_app",
"//deps/khepri_mnesia_migration:erlang_app",
"//deps/rabbit:erlang_app",
"//deps/rabbit_common:erlang_app",
"@khepri//:erlang_app",
"@khepri_mnesia_migration//:erlang_app",
],
)

Expand Down
8 changes: 4 additions & 4 deletions deps/rabbitmq_jms_topic_exchange/app.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def all_beam_files(name = "all_beam_files"):
dest = "ebin",
erlc_opts = "//:erlc_opts",
deps = [
"//deps/khepri:erlang_app",
"//deps/khepri_mnesia_migration:erlang_app",
"//deps/rabbit:erlang_app",
"//deps/rabbit_common:erlang_app",
"@khepri//:erlang_app",
"@khepri_mnesia_migration//:erlang_app",
],
)

Expand All @@ -46,10 +46,10 @@ def all_test_beam_files(name = "all_test_beam_files"):
dest = "test",
erlc_opts = "//:test_erlc_opts",
deps = [
"//deps/khepri:erlang_app",
"//deps/khepri_mnesia_migration:erlang_app",
"//deps/rabbit:erlang_app",
"//deps/rabbit_common:erlang_app",
"@khepri//:erlang_app",
"@khepri_mnesia_migration//:erlang_app",
],
)

Expand Down
4 changes: 2 additions & 2 deletions deps/rabbitmq_management/app.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/clustering_SUITE.beam"],
app_name = "rabbitmq_management",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/amqp_client:erlang_app", "//deps/rabbit_common:erlang_app", "//deps/rabbitmq_ct_helpers:erlang_app", "//deps/rabbitmq_management_agent:erlang_app"],
deps = ["//deps/amqp_client:erlang_app", "//deps/rabbit_common:erlang_app", "//deps/rabbitmq_ct_helpers:erlang_app"],
)
erlang_bytecode(
name = "clustering_prop_SUITE_beam_files",
Expand All @@ -519,7 +519,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/clustering_prop_SUITE.beam"],
app_name = "rabbitmq_management",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/amqp_client:erlang_app", "//deps/rabbit_common:erlang_app", "//deps/rabbitmq_ct_helpers:erlang_app", "//deps/rabbitmq_management_agent:erlang_app", "@proper//:erlang_app"],
deps = ["//deps/amqp_client:erlang_app", "//deps/rabbit_common:erlang_app", "//deps/rabbitmq_ct_helpers:erlang_app", "@proper//:erlang_app"],
)
erlang_bytecode(
name = "config_schema_SUITE_beam_files",
Expand Down
2 changes: 0 additions & 2 deletions deps/rabbitmq_prometheus/app.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def all_beam_files(name = "all_beam_files"):
dest = "ebin",
erlc_opts = "//:erlc_opts",
deps = [
"//deps/amqp_client:erlang_app",
"//deps/rabbit_common:erlang_app",
"//deps/rabbitmq_web_dispatch:erlang_app",
"@prometheus//:erlang_app",
Expand Down Expand Up @@ -56,7 +55,6 @@ def all_test_beam_files(name = "all_test_beam_files"):
dest = "test",
erlc_opts = "//:test_erlc_opts",
deps = [
"//deps/amqp_client:erlang_app",
"//deps/rabbit_common:erlang_app",
"//deps/rabbitmq_web_dispatch:erlang_app",
"@prometheus//:erlang_app",
Expand Down
4 changes: 2 additions & 2 deletions deps/rabbitmq_recent_history_exchange/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ rabbitmq_app(
license_files = [":license_files"],
priv = [":priv"],
deps = [
"//deps/khepri:erlang_app",
"//deps/khepri_mnesia_migration:erlang_app",
"//deps/rabbit:erlang_app",
"//deps/rabbit_common:erlang_app",
"@khepri//:erlang_app",
"@khepri_mnesia_migration//:erlang_app",
],
)

Expand Down
8 changes: 4 additions & 4 deletions deps/rabbitmq_recent_history_exchange/app.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def all_beam_files(name = "all_beam_files"):
dest = "ebin",
erlc_opts = "//:erlc_opts",
deps = [
"//deps/khepri:erlang_app",
"//deps/khepri_mnesia_migration:erlang_app",
"//deps/rabbit:erlang_app",
"//deps/rabbit_common:erlang_app",
"@khepri//:erlang_app",
"@khepri_mnesia_migration//:erlang_app",
],
)

Expand All @@ -44,10 +44,10 @@ def all_test_beam_files(name = "all_test_beam_files"):
dest = "test",
erlc_opts = "//:test_erlc_opts",
deps = [
"//deps/khepri:erlang_app",
"//deps/khepri_mnesia_migration:erlang_app",
"//deps/rabbit:erlang_app",
"//deps/rabbit_common:erlang_app",
"@khepri//:erlang_app",
"@khepri_mnesia_migration//:erlang_app",
],
)

Expand Down
3 changes: 1 addition & 2 deletions deps/rabbitmq_shovel/app.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/amqp10_dynamic_SUITE.beam"],
app_name = "rabbitmq_shovel",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/amqp_client:erlang_app"],
)
erlang_bytecode(
name = "amqp10_shovel_SUITE_beam_files",
Expand Down Expand Up @@ -232,7 +231,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/rolling_upgrade_SUITE.beam"],
app_name = "rabbitmq_shovel",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/amqp_client:erlang_app", "@khepri//:erlang_app"],
deps = ["//deps/amqp_client:erlang_app", "//deps/khepri:erlang_app"],
)
erlang_bytecode(
name = "shovel_status_command_SUITE_beam_files",
Expand Down
2 changes: 1 addition & 1 deletion deps/rabbitmq_stomp/app.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
testonly = True,
srcs = ["test/topic_SUITE.erl"],
outs = ["test/topic_SUITE.beam"],
hdrs = ["include/rabbit_stomp.hrl", "include/rabbit_stomp_frame.hrl", "include/rabbit_stomp_headers.hrl"],
hdrs = ["include/rabbit_stomp.hrl", "include/rabbit_stomp_frame.hrl"],
app_name = "rabbitmq_stomp",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/amqp_client:erlang_app"],
Expand Down
Loading

0 comments on commit 75077e4

Please sign in to comment.