← Back to issue list

Packing a bundle produces a zip that is rejected by charmhub

View original Github issue

Metadata

Project
charmcraft
Number
#2341
Type
issue
State
open
Author
sed-i
Labels
Created
2025-06-20 18:42:44+00:00
Updated
2025-08-15 15:17:47+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description I have a bundle I need to update. After packing, ``` > unzip -l cos-lite.zip Archive: cos-lite.zip Length Date Time Name --------- ---------- ----- ---- 5740 2025-06-20 14:33 README.md 11358 2025-06-20 14:33 LICENSE 2275 2025-06-20 14:35 metadata.yaml --------- ------- 19373 3 files ``` the metadata.yaml file contains what I have in bundle.yaml, but upload fails: ``` > charmcraft upload ./cos-lite.zip Upload failed with status 'rejected': - review-error: Missing required file bundle.yaml in bundle ``` ### To Reproduce ```bash git clone https://github.com/canonical/cos-lite-bundle.git cd cos-lite-bundle tox -e render-edge charmcraft pack charmcraft upload ./cos-lite.zip ``` ### Environment charmcraft 3.4.6 6672 Ubuntu 24.04.2 ### charmcraft.yaml ```yaml Not applicable - it's a bundle.yaml rendered from https://github.com/canonical/cos-lite-bundle/blob/main/bundle.yaml.j2 ``` ### Relevant log output ```shell See above. ```

Evaluation history

No evaluation history available.