compile deps in make setup so cold clones stay offline
Some deps download artifacts at compile time: rustler_precompiled fetches the mdex_native NIF from GitHub during its first compile, and NimblePublisher pulls mdex_native into both apps. Compiling inside the deps target keeps that traffic inside setup - the explicit user-run network step - instead of the first make check/test on a fresh clone.
This commit is contained in:
+5
-1
@@ -22,9 +22,13 @@ check: deps.check compile format.check
|
||||
precommit:
|
||||
$(MISE_EXEC) mix precommit
|
||||
|
||||
# Sync dependencies
|
||||
# Sync dependencies and compile them: NimblePublisher pulls in mdex_native,
|
||||
# whose precompiled NIF downloads from GitHub at first compile. Keeping that
|
||||
# in `deps` (called by root `make setup`) keeps check/test/verify offline on
|
||||
# a cold clone.
|
||||
deps:
|
||||
$(MISE_EXEC) mix deps.get
|
||||
$(MISE_EXEC) mix deps.compile
|
||||
|
||||
# Local, network-free guard: every package pinned in mix.lock must be present
|
||||
# in deps/. check, test and test.coverage depend on this instead of `deps`, so
|
||||
|
||||
Reference in New Issue
Block a user