cli: add experimental --offline option (CRAFT-480)
Metadata
Current evaluation
Merged into master, adding an experimental --offline CLI flag to Snapcraft. The flag currently triggers a warning and performs no actions until offline behavior stabilizes. Approved by two reviewers and passed CI checks.
Suggested action: —
No scores available.
Issue body
Enabling this option does not affect anything yet, but Snapcraft
will warn that it is an experimental flag. We can remove this
notice once we believe the offline behaviors are stable.
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged into master, adding an experimental --offline CLI flag to Snapcraft. The flag currently triggers a warning and performs no actions until offline behavior stabilizes. Approved by two reviewers and passed CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged PR #3577 into master, adding an experimental --offline CLI flag. It currently shows a warning without changing functionality. The notice will be removed when offline behavior stabilizes. Coverage increased by 0.03%. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master, introducing an experimental --offline CLI flag for Snapcraft. The option currently only displays a warning and lacks functional implementation. Merge increased test coverage by 0.03%. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1950479 Experimental offline mode fails with network present | snapcraft (launchpad) | open | Snapcraft's experimental --offline mode crashes with 'NoneType' object is not subscriptable in snaps.py when network is present, and lacks graceful failover. Reported ~4.8 years ago with no maintainer response; the offline feature was only ever added as a warning-only experimental flag. |