bases: improve errors for ESM bases
Metadata
Current evaluation
Merged into main. Updates error handling for deprecated ESM bases to reference the specific Snapcraft version and channel where they were supported. Resolves #4246. Approved by reviewer and passed CI.
Suggested action: —
No scores available.
Issue body
Bases that were once supported and no longer supported in the current version provide a reference to the version/channel of Snapcraft where they once were.
- [ ] 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 `make lint`?
- [ ] Have you successfully run `pytest tests/unit`?
-----
Fixes #4246
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged into main. Updates error handling for deprecated ESM bases to reference the specific Snapcraft version and channel where they were supported. Resolves #4246. Approved by reviewer and passed CI. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Improves error messages for deprecated ESM bases by referencing the Snapcraft version and channel where they were previously supported. Resolves #4246. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into main. Updates error handling for deprecated ESM bases to display the original Snapcraft version and channel where support ended. Resolves #4246. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5388 fix: don't fail when checking the base | snapcraft | merged | Merged a fix preventing snapcraft from failing early during base checks. Enables user-friendly error reporting for incorrect bases. Approved by two reviewers and merged with 10 additions and 30 deletions across three files. | |
| #6338 docs: update supported bases | snapcraft | merged | Merged documentation update reflecting Snapcraft 9 as the preferred version for core22, core24, and core26 bases. Approved by three reviewers and passed CI checks. | |
| #2309 snap: improve early base detection logic | snapcraft | merged | Merged. Resolved early base detection failure in build providers by updating logic to account for snapcraft's non-project directory execution. Approved by reviewer, passed CI, and merged with minimal changes. | |
| #6193 fix: snapcraft try error shows effective base | snapcraft | merged | Merged fix for #6186 that updates the snapcraft try error message to accurately display the effective base using get_effective_base(). Approved by reviewers and merged with added unit tests for core24 and core26. |