Skip to content

Commit 1c009c6

Browse files
committed
fix OTP 26 build
1 parent 5832225 commit 1c009c6

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Build distribution files
3232
working-directory: ${{ env.PLUGIN_FOLDER }}
3333
run: |
34-
make dist RABBITMQ_VERSION=${{ matrix.PLATFORM.RMQREF }} MIX_ENV=prod DIST_AS_EZS=yes IS_DEP=true
34+
make dist RABBITMQ_VERSION=${{ matrix.PLATFORM.RMQREF }} MIX_ENV=prod DIST_AS_EZS=yes
3535
- name: Store build artifacts
3636
uses: actions/upload-artifact@v4
3737
with:

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ DEP_PLUGINS = rabbit_common/mk/rabbitmq-plugin.mk
2828

2929
include ../../rabbitmq-components.mk
3030
include ../../erlang.mk
31+
32+
# compile: warnings being treated as errors
33+
# Elixir.RabbitMQ.CLI.Ctl.Commands.ListWebOcppConnectionsCommand.erl:11:2: behaviour 'Elixir.RabbitMQ.CLI.CommandBehaviour' undefined
34+
ERLC_OPTS := $(filter-out -Werror,$(ERLC_OPTS))

src/rabbit_web_ocpp_handler.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
%%
77

88
-module(rabbit_web_ocpp_handler).
9+
10+
-feature(maybe_expr, enable).
11+
912
-behaviour(cowboy_websocket).
1013
-behaviour(cowboy_sub_protocol).
1114

src/rabbit_web_ocpp_processor.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
%%
77
-module(rabbit_web_ocpp_processor).
88

9-
%% Simplified exports for OCPP
9+
-feature(maybe_expr, enable).
10+
1011
-export([info/2,
1112
init/7,
1213
process_incoming/2,

0 commit comments

Comments
 (0)