← Back to issue list

Incorrect charm name listed in `Charms packed:` output after pack

View original Github issue

Metadata

Project
charmcraft
Number
#1070
Type
issue
State
closed
Author
sed-i
Labels
—
Created
Updated
Closed

Current evaluation

Reported `Charms packed:` output showing a stale charm name after packing a hybrid machine/k8s charm; author sed-i retracted it on 2023-04-14 ("My bad. Everything is ok.") and it was closed with no code change.

Resolution: closed not a bug

Reason: No fix was made: the original reporter sed-i posted the only comment on 2023-04-14 stating "My bad. Everything is ok." and the issue was closed by the author, confirming the pack output and metadata.yaml name were correct as reported.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The grafana-agent charm is a hybrid machine/k8s repo. After packing the machine charm, ``` tox -e render-machine charmcraft clean charmcraft pack ``` ``` Packing the charm Created 'grafana-agent_ubuntu-22.04-amd64_ubuntu-20.04-amd64.charm'. Charms packed: grafana-agent_ubuntu-22.04-amd64_ubuntu-20.04-amd64.charm ``` I then pack the k8s charm. ``` charmcraft clean tox -e render-k8s charmcraft pack ``` As a result, I see the same output: ``` Packing the charm Created 'grafana-agent-k8s_ubuntu-22.04-amd64_ubuntu-20.04-amd64.charm'. Charms packed: grafana-agent-k8s_ubuntu-22.04-amd64_ubuntu-20.04-amd64.charm ``` However, the k8s charm is there ``` $ ls *.charm grafana-agent-k8s_ubuntu-22.04-amd64_ubuntu-20.04-amd64.charm grafana-agent_ubuntu-22.04-amd64_ubuntu-20.04-amd64.charm k8s.charm machine.charm ``` and correct: ``` $ unzip -p grafana-agent-k8s_ubuntu-22.04-amd64_ubuntu-20.04-amd64.charm metadata.yaml | grep name name: grafana-agent-k8s ``` So seems like the output of the pack is picking up something incorrectly.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Reported `Charms packed:` output showing a stale charm name after packing a hybrid machine/k8s charm; author sed-i retracted it on 2023-04-14 ("My bad. Everything is ok.") and it was closed with no code change.
stealth/space-bunny-alpha — closed not a bug Closed without a fix after the author confirmed on 2023-04-14 that everything worked correctly and the report was their mistake.
qwen3.6-35b-a3b-mtp-q6 — — Author reported incorrect charm name in charmcraft pack output. After verifying the files were correct, the author closed the issue, stating it was a mistake and everything worked as expected.
qwen/qwen3.6-35b-a3b — — Author closed the issue as invalid, confirming the reported incorrect Charms packed output was a user error and the tool functioned correctly.
qwen/qwen3.6-35b-a3b — — Closed as abandoned. Reporter later confirmed the pack output was correct and self-resolved the false alarm.
qwen3.6-35b-a3b-mtp-q6 — — Author self-resolved the report, confirming the output discrepancy was a false alarm. Issue closed without code changes.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2680 `name` field missing from packed charm's `metadata.yaml` when defined in `charmcraft.yaml` alongside a separate `metadata.yaml` charmcraft open Packed charm metadata.yaml omits name when name is in charmcraft.yaml and separate metadata.yaml lacks it, making charm undeployable. Confirmed by second user; no maintainer triage yet.
71%