Offline mode does not see path dependency changes
This is based on an example project that uses local path dependencies.
If I start bacon (no options) in project one and make a change to two/src/lib.rs that breaks compilation, bacon's display automatically updates.
If I start bacon with the --offline flag in project one and break project two, bacon does not update.
It might be that you don't want to support this, but it surprised me because it seems like bacon is capable of watching for the appropriate changes locally and it's not obvious why --offline affects that. Even if cargo is being called with --frozen or --locked under the hood, those only affect network-based behaviour, not local path-based access.
Versions:
bacon 2.12.1cargo 1.71.0 (cfd3bbd8f 2023-06-08)rustc 1.71.0 (8ede3aae2 2023-07-12)- OS: Ubuntu 23.04 (lunar)
Rust toolchain installed via Rustup, default is stable. Bacon installed via Cargo.
Right now, passing --offline to bacon makes it tell cargo-metadata not only to stay offline but also to ignore all dependencies out of the workspace (using no_deps).
The reason is that asking for --offline but allowing external dependencies most often just makes cargo break with an error.
Some use cases could maybe be solved with first trying without no_deps then retrying with no_deps in case of error? We'd have to experiment.