← Back to issue list

schema: replace `snap` filter with `prime` filter.

View original Github issue

Metadata

Project
snapcraft
Number
#1006
Type
pull request
State
merged
Author
kyrofa
Labels
—
Created
Updated
Closed

Current evaluation

Merged #1006 replaced the `snap` project filter with `prime`, deprecated `snap`, rejected configurations using both, and added a warning test; it fixes LP #1627781.

Resolution: closed resolved

Reason: The pull request was merged as commit 7330d37fc, implementing the schema change and deprecation behavior and resolving LP #1627781.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Merged #1006 replaced the `snap` project filter with `prime`, deprecated `snap`, rejected configurations using both, and added a warning test; it fixes LP #1627781.
stealth/space-bunny-alpha — closed resolved Merged PR #1006, replacing the deprecated snap filter with prime, rejecting use of both, and adding deprecation warning tests; fixes LP #1627781.
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.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/snapcraft@7330d37fc (confidence 100%)

    Resolving commit implementing the schema change.

Related issues

Issue Project State Summary Similarity
#2344 schema: remove the deprecated snap keyword for bases snapcraft merged PR #2344 was merged to master as commit f2cdc5e8a, removing the deprecated snap keyword in favor of the long-supported prime keyword.
73%
#1627781 Snapcraft should use "prime" keyword instead of "snap" snapcraft (launchpad) closed Snapcraft’s schema now uses the documented `prime` filter instead of `snap`, fixed by snapcore/snapcraft#1006 in commit 7330d37fc.
71%
#280 filters: fix stage/prime filter combination craft-parts merged Merged PR #280 (commit b26c06fc) corrected reversed stage/prime filter combination and added tests matching Snapcraft 6.x behavior.
71%