schema: replace `snap` filter with `prime` filter.
Metadata
Current evaluation
Merged. Replaces the deprecated snap filter with prime in the schema. Prevents simultaneous use, adds deprecation warnings, and includes unit tests. Approved and passed CI. Resolves Launchpad bug 1627781.
Suggested action: —
No scores available.
Issue body
This PR fixes LP: [#1627781](https://bugs.launchpad.net/snapcraft/+bug/1627781) by deprecating the `snap` keyword, and replacing it with `prime`. It also makes sure that they can't both be specified.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Replaces the deprecated snap filter with prime in the schema. Prevents simultaneous use, adds deprecation warnings, and includes unit tests. Approved and passed CI. Resolves Launchpad bug 1627781. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Deprecates the snap filter in favor of prime, preventing simultaneous usage. Fixes Launchpad bug 1627781 and adds a unit test for the deprecation warning. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Replaces the deprecated snap filter with prime in the schema, preventing both from being specified. Adds a deprecation warning, tracks dirty state for automatic prime step re-runs, and includes a unit test for the warning. Resolves Launchpad bug 1627781. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2344 schema: remove the deprecated snap keyword for bases | snapcraft | merged | Merged into master, the schema no longer uses the deprecated snap keyword for bases, replacing it with prime. Approved by two reviewers, passed CI, and increased coverage by 0.04%. | |
| #2609 schema: allow 'snapd' snap type | snapcraft | merged | Merged to allow the 'snapd' snap type in the schema. Approved by one reviewer, passed CI checks, and modified three files. |