← Back to issue list

Init output issue

View original Github issue

Metadata

Project
charmcraft
Number
#1259
Type
issue
State
closed
Author
dstathis
Labels
—
Created
Updated
Closed

Current evaluation

Fixed by merged PR #1149 (commit ca4df024): machine-profile init no longer advertises nonexistent config.yaml and metadata.yaml after adopting charmcraft.yaml.

Resolution: closed resolved

Reason: PR #1149 changed charmcraft init to use the unified charmcraft.yaml template. The maintainer confirmed this resolved #1259 and would ship in the next stable release.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description When you run `charmcraft init --profile machine`, the output instructs you to edit config.yaml but it does not exist. ### To Reproduce Run `charmcraft init --profile machine`. ### Environment ``` $ charmcraft version 2.4.1 ``` ### charmcraft.yaml ```shell - ``` ### Relevant log output ```shell dylan@protostar:~/repos/prometheus-snmp-exporter$ charmcraft init --profile machine Charmed operator package file and directory tree initialised. Now edit the following package files to provide fundamental charm metadata and other information: metadata.yaml config.yaml src/charm.py README.md dylan@protostar:~/repos/prometheus-snmp-exporter$ cat config.yaml cat: config.yaml: No such file or directory ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #1149 (commit ca4df024): machine-profile init no longer advertises nonexistent config.yaml and metadata.yaml after adopting charmcraft.yaml.
stealth/space-bunny-alpha — closed resolved Fixed in #1149: machine-profile init now uses only charmcraft.yaml, removing nonexistent config.yaml and metadata.yaml from its template and output.
qwen3.6-35b-a3b-mtp-q6 — — Fixed in PR #1149. The charmcraft init command for the machine profile incorrectly instructed users to edit a non-existent config.yaml file. Output instructions were corrected to reflect the actual generated files.
qwen/qwen3.6-35b-a3b — — Fixed in PR #1149. The charmcraft init command for the machine profile incorrectly instructed users to edit a non-existent config.yaml file. The output was corrected.
qwen/qwen3.6-35b-a3b — — Fixed in PR #1149. The charmcraft init --profile machine command incorrectly instructed users to edit a non-existent config.yaml. Output was corrected to list actual generated files. Included in the next stable release.
qwen3.6-35b-a3b-mtp-q6 — — Fixed in PR #1149. The charmcraft init --profile machine command was updated to stop instructing users to edit a non-existent config.yaml file. The fix is included in the next stable release.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#1149 (confidence 100%)

    Merged as commit ca4df024 and explicitly identified by the maintainer as the fix for #1259.

Related issues

Issue Project State Summary Similarity
#1139 `charmcraft init --profile machine` doesn't produce `config.yaml` charmcraft closed Fixed in canonical/charmcraft#1149 via commit ca4df024: machine init now uses charmcraft.yaml and no longer tells users to edit metadata.yaml or config.yaml.
79%
#868 Added a machine profile to init command (CRAFT-1046). charmcraft merged Merged PR #868 added a machine profile to charmcraft init, resolving #568 and #593; merge commit: a6c21119.
75%
#2167 charmcraft init --profile machine does not produce a valid charmcraft.yaml charmcraft closed Fixed by #2200 (commit c4d43add), which migrated the machine init template from legacy bases syntax to platforms.
73%
#1149 command: charmcraft init to use charmcraft.yaml only charmcraft merged Merged in ca4df024: charmcraft init now generates a unified charmcraft.yaml containing metadata, actions, and config, with profile descriptions and an updated URL.
71%
#328 charmcraft init produces error charm for machine charms charmcraft closed Machine charms gained a dedicated charmcraft init profile, resolving Kubernetes-only initialization; the change was merged in PR #868 (commit 2ed9033c).
71%