Skip to content

rebar3: also accept new macro format for version 3.26#148

Closed
alanz wants to merge 1 commit intoWhatsApp:mainfrom
alanz:export-D90500460
Closed

rebar3: also accept new macro format for version 3.26#148
alanz wants to merge 1 commit intoWhatsApp:mainfrom
alanz:export-D90500460

Conversation

@alanz
Copy link
Copy Markdown
Member

@alanz alanz commented Jan 12, 2026

Summary:
rebar3 version 3.26.0 changed the way the configured macros are stored in the manifest file.

Old format (rebar3 < 3.26.0): [#{key => 'TEST', value => <<"true">>}]
New format (rebar3 >= 3.26.0): #{'TEST' => <<"true">>}

Update the manifest loading to support both formats.

Differential Revision: D90500460

@meta-cla meta-cla bot added the cla signed label Jan 12, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Jan 12, 2026

@alanz has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90500460.

alanz added a commit to alanz/erlang-language-platform that referenced this pull request Jan 12, 2026
Summary:

`rebar3` version `3.26.0` changed the way the configured macros are stored in the manifest file.

Old format (rebar3 < 3.26.0): `[#{key => 'TEST', value => <<"true">>}]`
New format (rebar3 >= 3.26.0): `#{'TEST' => <<"true">>}`

Update the manifest loading to support both formats.

Differential Revision: D90500460
alanz added a commit to alanz/erlang-language-platform that referenced this pull request Jan 12, 2026
Summary:

`rebar3` version `3.26.0` changed the way the configured macros are stored in the manifest file.

Old format (rebar3 < 3.26.0): `[#{key => 'TEST', value => <<"true">>}]`
New format (rebar3 >= 3.26.0): `#{'TEST' => <<"true">>}`

Update the manifest loading to support both formats.

Differential Revision: D90500460
alanz added a commit to alanz/erlang-language-platform that referenced this pull request Jan 12, 2026
Summary:

`rebar3` version `3.26.0` changed the way the configured macros are stored in the manifest file.

Old format (rebar3 < 3.26.0): `[#{key => 'TEST', value => <<"true">>}]`
New format (rebar3 >= 3.26.0): `#{'TEST' => <<"true">>}`

Update the manifest loading to support both formats.

Differential Revision: D90500460
@robertoaloi
Copy link
Copy Markdown
Contributor

I am still a bit confused about this. Wasn't the manifest fix by @eproxus explicitly addressing the mismatch, moving away from a list of maps to a single map? And now we're patching ELP to support the "single map" format, because it only supports the list of maps? That doesn't make sense.

alanz added a commit to alanz/erlang-language-platform that referenced this pull request Jan 12, 2026
Summary:

`rebar3` version `3.26.0` changed the way the configured macros are stored in the manifest file.

Old format (rebar3 < 3.26.0): `[#{key => 'TEST', value => <<"true">>}]`
New format (rebar3 >= 3.26.0): `#{'TEST' => <<"true">>}`

Update the manifest loading to support both formats.

Differential Revision: D90500460
Summary:

`rebar3` version `3.26.0` changed the way the configured macros are stored in the manifest file.

Old format (rebar3 < 3.26.0): `[#{key => 'TEST', value => <<"true">>}]`
New format (rebar3 >= 3.26.0): `#{'TEST' => <<"true">>}`

Update the manifest loading to support both formats.

Reviewed By: robertoaloi

Differential Revision: D90500460
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Jan 12, 2026

This pull request has been merged in 42663dd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants