Declare rustler explicitly so mdex_native force-builds - #35
Conversation
MDEX_NATIVE_BUILD=1 in this environment forces mdex_native to build its NIF from source (OTP 28 ships no precompiled build), which requires rustler itself, not just rustler_precompiled. mdex arrives here transitively through phoenix_kit; a clean checkout failed to compile without this. Same declaration phoenix_kit's own mix.exs already carries.
|
Ran the full suite on this branch tip: 1123 tests, 3 failures (2 excluded). All 3 predate this PR and are unrelated to it — this PR only adds I read each failing assertion individually to confirm this; none of it is caused by this PR. |
Pin the import-preview nav_tabs contract with a live test that renders tabs-border and clicks phx-value-tab.
MDEX_NATIVE_BUILD=1forcesmdex_nativeto build its NIF from source when no precompiled build exists for the running OTP (28 in our case), which requiresrustleritself, not justrustler_precompiled.mdexarrives here transitively throughphoenix_kit; a clean checkout fails to compile without this declaration. Same declarationphoenix_kit's ownmix.exsalready carries.One fix, six repositories. Every module that pulls
mdextransitively throughphoenix_kitneeds the same one-line declaration, and each repository needs its own PR. Already merged: BeamLabEU/phoenix_kit_catalogue#77, BeamLabEU/phoenix_kit_billing#27. Still open: BeamLabEU/phoenix_kit_crm#25, BeamLabEU/phoenix_kit_warehouse#20, BeamLabEU/phoenix_kit_document_creator#42.Scope. This makes this repository build from a clean checkout under
MDEX_NATIVE_BUILD=1. It does not remove the need for a host application to declarerustleritself: optional dependencies of dependencies are never resolved, so whichever project is the root has to declare it.