← Back to issue list

Transition from "prime" to "charm-files" for including files

View original Github issue

Metadata

Project
charmcraft
Number
#666
Type
issue
State
closed
Author
facundobatista
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Resolved in charmcraft 3.0 by removing the prime keyword entirely. It now behaves like other craft-parts applications. Migration documentation to the dump plugin was added, with a separate warning system for prime usage tracked in issue #1609.

Update history

No update history recorded yet.

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 Documentation was updated to clarify the deprecated prime key in parts. Code fixes were included in the Charmcraft 3.1.2 hotfix, resolving the reported build failures and restoring expected behavior.
73%
#170 Stop including in the charm file whatever is in the project charmcraft closed Fixed. Charmcraft now includes only mandatory files by default, preventing accidental secret exposure. Additional files require explicit configuration via charmcraft.yaml parts.prime. The fix was landed and documented.
72%