Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Nov 11, 2025

HEX_TARBALL_FILES included ../../rabbitmq-components.mk which modern rebar3 compile considers to be unsafe and fails on (quite reasonably).

FTR, the error looks like this:

===> Fetching rebar_alias v0.2.0
===> Analyzing applications...
===> Compiling rebar_alias
===> Verifying dependencies...
===> Fetching amqp_client v4.1.5
escript: exception error: no function clause matching
                 rebar_fetch:format_error({error,
                                           {hex_tarball,
                                            {inner_tarball,
                                             {"../../rabbitmq-components.mk",
                                              unsafe_path}}}}) (/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_fetch.erl, line 99)
  in function  rebar3:handle_error/2 (/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar3.erl, line 383)
  in call from escript:run/2 (escript.erl, line 904)
  in call from escript:start/1 (escript.erl, line 418)
  in call from init:start_it/1
  in call from init:start_em/1
  in call from init:do_boot/3

Excluding this relative path addresses the issue.

rabbit_common/Makefile arguably does not need to
add any .mk files to the tarball but let's
deal with that in a separate change.


This is an automatic backport of pull request #14915 done by [Mergify](https://mergify.com).

michaelklishin and others added 2 commits November 11, 2025 21:38
HEX_TARBALL_FILES included ../../rabbitmq-components.mk which
modern `rebar3 compile` considers to be unsafe and fails on
(quite reasonably).

FTR, the error looks like this:

````
===> Fetching rebar_alias v0.2.0
===> Analyzing applications...
===> Compiling rebar_alias
===> Verifying dependencies...
===> Fetching amqp_client v4.1.5
escript: exception error: no function clause matching
                 rebar_fetch:format_error({error,
                                           {hex_tarball,
                                            {inner_tarball,
                                             {"../../rabbitmq-components.mk",
                                              unsafe_path}}}}) (/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_fetch.erl, line 99)
  in function  rebar3:handle_error/2 (/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar3.erl, line 383)
  in call from escript:run/2 (escript.erl, line 904)
  in call from escript:start/1 (escript.erl, line 418)
  in call from init:start_it/1
  in call from init:start_em/1
  in call from init:do_boot/3
```

Excluding this relative path addresses the issue.

rabbit_common/Makefile arguably does not need to
add any .mk files to the tarball but let's
deal with that in a separate change.

(cherry picked from commit 5f4ca99)
Per discussion in #14915.

(cherry picked from commit 31011a6)
@mergify mergify bot added the make label Nov 11, 2025
@michaelklishin michaelklishin added this to the 4.2.1 milestone Nov 11, 2025
@michaelklishin michaelklishin merged commit ba74f7f into v4.2.x Nov 12, 2025
574 of 575 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.2.x/pr-14915 branch November 12, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants