Closed Hoverbear closed 2 years ago
This would be passed to `DependencyRegistry` construction to communicate that it should be done without reaching the network. It could also read from `FSM_OFFLINE`. This is, primarily, for testing. We could alternatively use `FSM_OFFLINE` as a secret dev env, but I'd prefer to not keep secrets. Using `--offline` should imply `--disable-telemetry`
Adds an
--offline
flag which removes almost all of our network use (including incargo metadata --offline
andnix flake lock --offline
), however attempting to donix develop --offline
lead to a nix bootstrap, which is undesirable.I'm a bit confused by this as I assumed
nix flake lock --offline
would actually fail, but I guess it's using my local channel?I believe if we stored the derivative flake.nix/lock in a consistent place, we could support true
--offline
after the first run.Perhaps this ticket should only imply FSM specific networking, but then adding a less specific
--offline
flag (which is a legitimate want) might be hard.