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:
+9
-1
@@ -24,9 +24,17 @@ assets:
|
||||
@test -f assets/node_modules/.package-lock.json || \
|
||||
(echo "==> assets: npm install (first run)"; cd assets && npm install)
|
||||
|
||||
# Sync dependencies (Hex packages + JS packages)
|
||||
# Sync dependencies (Hex packages + JS packages) and compile them. The compile
|
||||
# step is part of setup on purpose: 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 this app. Keep
|
||||
# that traffic in this explicit, user-run step so check/test/verify stay
|
||||
# offline even on a cold clone. (rustler_precompiled caches artifacts globally
|
||||
# in ~/Library/Caches/rustler_precompiled, so later test-env compiles find
|
||||
# them without network.)
|
||||
deps: assets
|
||||
$(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