Skip to content

Commit 167246f

Browse files
Merge pull request #8003 from rabbitmq/otp26-compatibility
OTP26 compatibility
2 parents 2562678 + 13087a0 commit 167246f

File tree

9 files changed

+130
-121
lines changed

9 files changed

+130
-121
lines changed

.github/workflows/oci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
matrix:
3535
include:
3636
- image_tag_suffix: otp-min-bazel
37-
otp_version_id: 25_0
38-
- image_tag_suffix: otp-max-bazel
3937
otp_version_id: 25_3
38+
- image_tag_suffix: otp-max-bazel
39+
otp_version_id: 26
4040
steps:
4141
- name: Checkout
4242
uses: actions/checkout@v3
@@ -76,7 +76,7 @@ jobs:
7676
echo "elixir=$(cat bazel-bin/elixir_version.txt)" >> $GITHUB_OUTPUT
7777
7878
- name: Configure OTP & Elixir
79-
uses: erlef/[email protected]
79+
uses: erlef/[email protected].3
8080
with:
8181
otp-version: ${{ steps.load-info.outputs.otp }}
8282
elixir-version: ${{ steps.load-info.outputs.elixir }}

.github/workflows/test-windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: CHECKOUT REPOSITORY
2222
uses: actions/checkout@v3
2323
- name: CONFIGURE ERLANG
24-
uses: erlef/[email protected]
24+
uses: erlef/[email protected].3
2525
with:
2626
otp-version: ${{ matrix.erlang_version }}
2727
elixir-version: ${{ matrix.elixir_version }}

MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ erlang_dev_package.hex_package(
400400
erlang_dev_package.git_package(
401401
name = "emqtt",
402402
build_file = "@rabbitmq-server//bazel:BUILD.emqtt",
403-
repository = "emqx/emqtt",
404-
tag = "1.8.2",
403+
repository = "rabbitmq/emqtt",
404+
branch = "otp-26-compatibility",
405405
)
406406

407407
erlang_dev_package.git_package(

bazel/BUILD.emqtt

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,9 @@ erlang_bytecode(
4545
"src/emqtt_sock.erl",
4646
"src/emqtt_ws.erl",
4747
],
48-
outs = [
49-
"ebin/emqtt.beam",
50-
"ebin/emqtt_cli.beam",
51-
"ebin/emqtt_frame.beam",
52-
"ebin/emqtt_inflight.beam",
53-
"ebin/emqtt_props.beam",
54-
"ebin/emqtt_quic.beam",
55-
"ebin/emqtt_quic_connection.beam",
56-
"ebin/emqtt_quic_stream.beam",
57-
"ebin/emqtt_secret.beam",
58-
"ebin/emqtt_sock.beam",
59-
"ebin/emqtt_ws.beam",
60-
],
61-
hdrs = [
62-
"include/emqtt.hrl",
63-
"include/logger.hrl",
64-
],
48+
hdrs = [":public_and_private_hdrs"],
6549
app_name = "emqtt",
50+
dest = "ebin",
6651
erlc_opts = "//:erlc_opts",
6752
)
6853

@@ -94,6 +79,7 @@ filegroup(
9479
filegroup(
9580
name = "private_hdrs",
9681
testonly = True,
82+
srcs = glob(["src/**/*.hrl"]),
9783
)
9884

9985
filegroup(
@@ -108,6 +94,7 @@ filegroup(
10894
filegroup(
10995
name = "priv",
11096
testonly = True,
97+
srcs = glob(["priv/**/*"]),
11198
)
11299

113100
filegroup(
@@ -143,6 +130,8 @@ erlang_app(
143130
hdrs = [":public_hdrs"],
144131
app_name = "emqtt",
145132
beam_files = [":beam_files"],
133+
license_files = [":license_files"],
134+
priv = [":priv"],
146135
deps = [
147136
"@cowlib//:erlang_app",
148137
"@getopt//:erlang_app",
@@ -155,3 +144,9 @@ alias(
155144
actual = ":erlang_app",
156145
visibility = ["//visibility:public"],
157146
)
147+
148+
filegroup(
149+
name = "license_files",
150+
testonly = True,
151+
srcs = glob(["LICENSE*"]),
152+
)

deps/rabbit/src/rabbit_time_travel_dbg.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ print() ->
4747
ok.
4848

4949
stop() ->
50-
dbg:stop_clear(),
50+
dbg:stop(),
5151
?MODULE ! stop,
5252
ok.
5353

deps/rabbitmq_auth_backend_oauth2/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ DEP_PLUGINS = rabbit_common/mk/rabbitmq-plugin.mk
1515
dep_jose = git https://github.com/michaelklishin/erlang-jose mk-thoas-support
1616
dep_base64url = hex 1.0.1
1717

18-
dep_emqtt = git https://github.com/emqx/emqtt.git 1.8.2
18+
dep_emqtt = git https://github.com/rabbitmq/emqtt.git otp-26-compatibility
1919

2020
include ../../rabbitmq-components.mk
2121
include ../../erlang.mk

deps/rabbitmq_mqtt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ DEPS = ranch rabbit_common rabbit amqp_client ra
4343
TEST_DEPS = emqtt ct_helper rabbitmq_ct_helpers rabbitmq_ct_client_helpers rabbitmq_management rabbitmq_web_mqtt
4444

4545
dep_ct_helper = git https://github.com/extend/ct_helper.git master
46-
dep_emqtt = git https://github.com/emqx/emqtt.git 1.8.2
46+
dep_emqtt = git https://github.com/rabbitmq/emqtt.git otp-26-compatibility
4747

4848
DEP_EARLY_PLUGINS = rabbit_common/mk/rabbitmq-early-plugin.mk
4949
DEP_PLUGINS = rabbit_common/mk/rabbitmq-plugin.mk

0 commit comments

Comments
 (0)