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:
@@ -71,10 +71,11 @@ This is a Phoenix Liveview monorepo, the blogging library is in blogex, the appl
|
||||
Main make targets:
|
||||
|
||||
- `make setup` - one-time clone setup (and after any mix.exs gains a dep):
|
||||
fetches Hex deps for both apps and the app's JS packages. Needs network -
|
||||
run it yourself; agent sandboxes refuse installs. check/test/verify never
|
||||
touch the network: they run a local `deps.check` guard that fails with a
|
||||
pointer here when deps are missing.
|
||||
fetches Hex deps for both apps, the app's JS packages, and compiles deps
|
||||
(some deps fetch artifacts at compile time, e.g. the mdex_native NIF).
|
||||
Needs network - run it yourself; agent sandboxes refuse installs.
|
||||
check/test/verify never touch the network: they run a local `deps.check`
|
||||
guard that fails with a pointer here when deps are missing.
|
||||
- `make check` - cheap static gate for both apps (no DB): app `credo --strict` +
|
||||
format **check** (`mix format --check-formatted`), blogex compile (warnings
|
||||
fatal) + format **check**, then `scripts/check-pins.sh`. It never rewrites
|
||||
|
||||
Reference in New Issue
Block a user