Transition from "prime" to "charm-files" for including files
Metadata
Current evaluation
Superseded in Charmcraft 3.0: the prime-to-charm-files rewrite was dropped; prime now follows standard craft-parts filtering, with dump-plugin migration docs.
Resolution: closed superseded
Reason: The closing comment states that Charmcraft 3.0 removed the rewrite and adopted standard craft-parts prime behavior. It links migration guidance and follow-up #1609, whose deprecated-prime warning was merged in PR #1642 as commit 207a9176.
Evaluated by: mr-cal-bot
No scores available.
Issue body
To craft-parts, the prime keyword is a file filter mechanism. This keyword is being overloaded in craft-parts. The proposal is to make the application (Charmcraft) re-write the prime keyword to a new one to pass to the plugin (charm-files) and loading craft-parts with the default prime filter, with the possibility of allowing both to co-exist.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed superseded | Superseded in Charmcraft 3.0: the prime-to-charm-files rewrite was dropped; prime now follows standard craft-parts filtering, with dump-plugin migration docs. | |
| stealth/space-bunny-alpha | — | closed superseded | Superseded: Charmcraft 3.0 removed the prime-to-charm-files rewrite; prime now uses standard craft-parts filtering, with dump-plugin migration guidance. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Superseded. Charmcraft 3.0 removed the custom prime-to-charm-files rewrite entirely. The prime keyword now matches standard craft-parts behavior, with migration docs added for the dump plugin. A warning detects prime usage to guide users. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved in charmcraft 3.0 by removing the transition entirely. The prime keyword now behaves as a standard craft-parts filter. Migration documentation for the dump plugin was added, and issue #1609 will warn users about prime usage. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Removed in charmcraft 3.0 and replaced by the dump plugin. Migration documentation was published, and issue #1609 will add a deprecation warning when the prime keyword is detected. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/charmcraft#1609
(confidence 100%)
Follow-up issue for changed prime behavior and migration to the dump plugin.
-
Related To:
canonical/charmcraft#1642
(confidence 98%)
Merged warning for deprecated prime usage in commit 207a9176.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1782 Charmcraft 3.1.1 removed support for `parts` - when documentation clearly states it is deprecated | charmcraft | closed | Resolved by merged PR #1785 (8615c6e2): Charmcraft 3.1.2 clarified that `prime` was removed despite being labeled deprecated and updated related documentation. | |
| #1609 Charmcraft 3.0.0 renders .charm files missing dispatch script and any meaningful python | charmcraft | closed | Closed as intentional 3.0 behavior: prime filters rather than includes files. Maintainers documented a dump-part workaround and merged warning PR #1642 (207a9176). |