`icon.svg` is not included in `*.charm` file
Metadata
Current evaluation
Closed as plugin-specific behavior: only the charm plugin auto-includes icon.svg; other plugins must stage it with a dump part. Documentation was added in #2711 (commit 037c5b41).
Resolution: closed not a bug
Reason: The closing discussion determined that automatic icon inclusion is specific to the charm plugin; other plugins require an explicit dump part. PR #2711, commit 037c5b41, documents this plugin difference.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Check existing issues
- [x] I've verified that this bug isn't described by any existing issues.
### Bug description
`charmcraft pack` does not include `icon.svg` in the final `*.charm` files.
According to [this post](https://discourse.charmhub.io/t/problems-creating-a-charm-logo-icon-svg/6959/3?u=jose) the file icon.svg should be included in `*.charm` file.
Besides that, according to [this doc](https://documentation.ubuntu.com/charmcraft/stable/reference/files/icon-svg-file/) the icon should be 100x100px.
Because of this, charms end up without a logo in charmhub.io
### Steps to reproduce
1. Clone this repo: https://github.com/canonical/opentelemetry-collector-operator/
2. run `charmcraft pack`
3. Verify that `icon.svg` is not in the `*.charm` files
### Environment
charmcraft 4.0.1
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed not a bug | Closed as plugin-specific behavior: only the charm plugin auto-includes icon.svg; other plugins must stage it with a dump part. Documentation was added in #2711 (commit 037c5b41). | |
| stealth/space-bunny-alpha | — | closed superseded | Closed as a plugin-specific packaging issue: only the charm plugin auto-includes icon.svg. Other plugins need a dump part; documentation migration work was assigned to CHARMCRAFT-658. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a code fix. The charm plugin auto-includes icon.svg, but other plugins require a manual dump part workaround. Superseded by CHARMCRAFT-658 to update migration guides with the required configuration. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
60
Complexity:
25
Confidence:
90
Support Request:
20
|
keep open | charmcraft pack omits icon.svg from .charm files when using non-charm plugins. Root cause identified, workaround provided, and documentation update tracked in CHARMCRAFT-658. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
45
Complexity:
20
Confidence:
90
Support Request:
30
|
keep open | charmcraft pack omits icon.svg from charm files when using non-charm plugins. Maintainers identified the cause, provided a dump plugin workaround, and logged documentation updates in CHARMCRAFT-658. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
20
Complexity:
15
Confidence:
85
Support Request:
25
|
keep open | charmcraft pack omits icon.svg from built charms due to plugin behavior differences. Maintainers identified the cause, provided a dump plugin workaround, and are tracking documentation updates separately. |
Update history
| Date | Change |
|---|---|
| closed |
Related work
-
Likely Fixed By:
canonical/charmcraft#2711
(confidence 98%)
Documents plugin-specific icon handling.
-
Related To:
canonical/charmcraft#2673
(confidence 90%)
Adds the Ubuntu 26.04 migration guidance tracked as CHARMCRAFT-658.
Related issues
No related issues found above the similarity threshold.