`charmcraft init` produces charm with `unknown` language and framework
Metadata
Current evaluation
Closed after identifying the root cause as a bug in the analyze command during charm file extraction, not charmcraft init. The maintainers fixed the extraction logic to correctly populate language and framework metadata.
Suggested action: —
No scores available.
Issue body
`charmcraft init` does not populate all files needed for `charmcraft analyze` be successful:
```bash
$ mkdir bla
$ cd bla
$ charmcraft init
$ charmcraft pack
$ charmcraft analyze bla_ubuntu-20.04-amd64.charm
Attributes:
- language: unknown (https://juju.is/docs/sdk/charmcraft-analyze#heading--language)
- framework: unknown (https://juju.is/docs/sdk/charmcraft-analyze#heading--framework)
Lint OK:
- metadata: no issues found (https://juju.is/docs/sdk/charmcraft-analyze#heading--metadata)
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed after identifying the root cause as a bug in the analyze command during charm file extraction, not charmcraft init. The maintainers fixed the extraction logic to correctly populate language and framework metadata. | |
| qwen/qwen3.6-35b-a3b | — | — | The charmcraft analyze command incorrectly reported unknown language and framework due to a bug in its charm file unzipping logic. The issue was closed after the maintainer identified and fixed the unzipping bug. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved by fixing the analyze command charm extraction logic, which incorrectly reported unknown language and framework attributes. The bug was addressed and the issue closed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Resolved by fixing a bug in the charmcraft analyze command that incorrectly reported unknown language and framework during charm file unzipping. The root cause was misattributed to charmcraft init. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Fixed by correcting the analyze command's charm file extraction logic. The analyze command previously failed to read language and framework metadata after unzipping, triggering false unknown reports. Closed after implementation. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #328 charmcraft init produces error charm for machine charms | charmcraft | closed | Closed without resolution. Maintainers acknowledged the core issue persists: charmcraft init still lacks a machine charm template or flag, leaving machine charm workflows unsupported despite claims that metadata changes fixed it. |