Have a configuration for charms to always update charm libraries when packing
Metadata
Current evaluation
Rejected. The proposal was abandoned due to CI risks and scope concerns. Maintainers agreed charmcraft should not auto-update libraries, favoring CI automation or external tools like Renovate for dependency management.
Suggested action: —
No scores available.
Issue body
Add a configuration key in `charmcrat.yaml`, in charmcraft.yaml, to always update the charm libraries before packing.
So, the user could add this line in the config file:
```
charm-libraries-auto-update: true
```
(alternate key names: `charm-libraries-auto-update-when-packing`, `charm-libraries-pack-update`)
and when packing the net result will be that *before* actually packing the `fetch-lib` will be run (applying to all libraries).
The key belongs to the root level, not in the charm part, as this is for Charmcraft to change behaviour before packing and not part of the plugin's behaviour.
If the "fetch lib" command fails, the packing should be interrupted.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 | — | — | Rejected. The proposal was abandoned due to CI risks and scope concerns. Maintainers agreed charmcraft should not auto-update libraries, favoring CI automation or external tools like Renovate for dependency management. | |
| qwen/qwen3.6-35b-a3b | — | — | Rejected. Auto-updating charm libraries during packing was abandoned due to CI reliability risks. Maintainers recommended manual CLI flags, scheduled CI checks, or Renovate integration instead. No configuration was added. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Rejected. Auto-updating libraries during packing was abandoned due to CI risks. Contributors suggested Renovate or CI automation instead. No implementation occurred. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Rejected. The auto-update config was abandoned due to CI risks. Maintainers agreed automatic library updates during packing risk untested releases. Closed in favor of CI automation, Renovate integration, or explicit CLI flags. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1980 Check for major charm library updates | charmcraft | open | Feature request to detect major (LIBAPI) charm library updates via fetch-libs or a new command, enabling CI workflows to flag breaking library upgrades. Maintainer acknowledged as low priority in June 2025; no implementation yet. |