Declare rustler explicitly so mdex_native force-builds - #20
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: Note on running the integration half at all here: With the integration half actually running: 781 tests, 10 failures. All 10 predate this PR and are unrelated to it — this PR only adds None of this is introduced by this PR, and I haven't touched any of it here. |
Raises the catalogue floor to ~> 0.18 so ItemSelectorModal is a declared contract, not a lockfile coincidence. Supplier indexes now resolve names the same way the forms do. ItemSelectorModal hosts pass active-only scope, locale, and decimal qty precision, coerce JSONB quantities into the selected map, and skip a missing catalogue row instead of crashing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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_entities#35, 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.