feat: add optimistic project loading
Metadata
Current evaluation
Merged. Optimistic project loading allows commands with always_load_project set to try to attempt loading without failing if unavailable. Approved by three reviewers, passed CI, and modified three files (+102/-19).
Suggested action: —
No scores available.
Issue body
This PR adds optimistic project loading. If a command's `always_load_project` attribute is `"try"`, craft_application will attempt to load the project, but not fail if it cannot do so.
- [x] Have you followed the guidelines for contributing?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `tox`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Optimistic project loading allows commands with always_load_project set to try to attempt loading without failing if unavailable. Approved by three reviewers, passed CI, and modified three files (+102/-19). | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Introduces optimistic project loading by setting always_load_project to try, allowing commands to proceed without failing if a project file is unavailable. Enables remote builds and store commands. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4628 feat: allow for overriding project asset handling | snapcraft | merged | Merged. Enables overriding project asset handling by consolidating executable settings and adding tests for hook interactions. Approved by two reviewers, passed CI checks, and maintained test coverage. |