← Back to issue list

charmcraft 1.2.1 fails to copy config.yaml

View original Github issue

Metadata

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

Current evaluation

Closed as stale after the 1.2.1 config.yaml copy failure was not reproduced; a Charmcraft 1.3.1 retry instead encountered a separate tomli build error.

Resolution: closed stale

Reason: The reporter's 1.3.1 attempt failed later while collecting tomli, not while copying config.yaml. On 2022-03-07, facundobatista asked the reporter to reopen if modern Charmcraft still showed the issue; no confirming update or fixing PR followed.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I am trying to pack [jellyfin-operator](https://github.com/sed-i/jellyfin-operator) and charmcraft fails to copy `config.yaml`: ``` > charmcraft version 1.2.1 > charmcraft clean Cleaned project 'jellyfin-k8s'. > charmcraft pack Packing charm 'jellyfin-k8s_ubuntu-20.04-amd64.charm'... Parts processing error: Failed to copy '/root/project/build/stage/config.yaml': no such file or directory. (full execution logs in '/tmp/charmcraft.log') Failed to build charm for bases index '0'. (full execution logs in '/home/tux/snap/charmcraft/common/charmcraft-log-v7i73tb0') ``` But if I get `config.yaml` out of the way, packing works: ``` > mv config.yaml config.yaml.hid > charmcraft pack Packing charm 'jellyfin-k8s_ubuntu-20.04-amd64.charm'... Created 'jellyfin-k8s_ubuntu-20.04-amd64.charm'. ``` [cc121.log](https://github.com/canonical/charmcraft/files/7343274/cc121.log)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed as stale after the 1.2.1 config.yaml copy failure was not reproduced; a Charmcraft 1.3.1 retry instead encountered a separate tomli build error.
stealth/space-bunny-alpha — closed stale Closed as stale after the Charmcraft 1.2.1 config.yaml copy failure was replaced by a tomli error in 1.3.1; the maintainer asked the reporter to reopen with a modern version.
qwen3.6-35b-a3b-mtp-q6 — — Charmcraft 1.2.1 failed to copy config.yaml during packing, later replaced by a tomli pip error in v1.3.1. The issue was closed, with maintainers requesting the user reopen it if the problem persists with a modern Charmcraft version.
qwen/qwen3.6-35b-a3b — — A user reported charmcraft failing to copy config.yaml during packaging. The maintainer closed the issue pending verification on newer versions, as the reporter encountered a different pip error in v1.3.1.
qwen3.6-35b-a3b-mtp-q6 — — Abandoned. The config.yaml copy failure in charmcraft 1.2.1 was superseded by a tomli pip error in v1.3.1. Maintainers closed the report, requesting users reopen if the issue persists with modern versions.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.