Skip to content

Commit 77ae6eb

Browse files
committed
Add temporary workarounds to compile rebar3 3.26.0 with Erlang/OTP 29.0-rc1
1 parent 7eb3715 commit 77ae6eb

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

29/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ RUN set -xe \
6464
&& tar -xzf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \
6565
&& rm rebar3-src.tar.gz \
6666
&& cd /usr/src/rebar3-src \
67+
&& sed -i "s|warnings_as_errors|nowarn_deprecated_catch|g" rebar.config \
68+
&& sed -i "s|{overrides, \[{|{overrides, [{override, [{erl_opts, [nowarn_deprecated_catch]}]},{|g" rebar.config \
6769
&& HOME=$PWD ./bootstrap \
6870
&& install -v ./rebar3 /usr/local/bin/ \
6971
&& rm -rf /usr/src/rebar3-src

29/alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ RUN set -xe \
5656
&& tar -xzf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \
5757
&& rm rebar3-src.tar.gz \
5858
&& cd /usr/src/rebar3-src \
59+
&& sed -i "s|warnings_as_errors|nowarn_deprecated_catch|g" rebar.config \
60+
&& sed -i "s|{overrides, \[{|{overrides, [{override, [{erl_opts, [nowarn_deprecated_catch]}]},{|g" rebar.config \
5961
&& HOME=$PWD ./bootstrap \
6062
&& install -v ./rebar3 /usr/local/bin/ \
6163
&& rm -rf /usr/src/rebar3-src \

29/slim/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ RUN set -xe \
5454
&& tar -xzf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \
5555
&& rm rebar3-src.tar.gz \
5656
&& cd /usr/src/rebar3-src \
57+
&& sed -i "s|warnings_as_errors|nowarn_deprecated_catch|g" rebar.config \
58+
&& sed -i "s|{overrides, \[{|{overrides, [{override, [{erl_opts, [nowarn_deprecated_catch]}]},{|g" rebar.config \
5759
&& HOME=$PWD ./bootstrap \
5860
&& install -v ./rebar3 /usr/local/bin/ \
5961
&& rm -rf /usr/src/rebar3-src \

0 commit comments

Comments
 (0)