`charmcraft init` produces charm with `unknown` language and framework
Metadata
Current evaluation
Fixed by PR #476: analyze now preserves permissions when unpacking charms, restoring language/framework detection; commit 5d4c725a, merged in fc7fa7f6.
Resolution: closed resolved
Reason: The fault was in analyze's extraction logic rather than charmcraft init. PR #476 fixed unpacked-file permissions in commit 5d4c725a and was merged as fc7fa7f6.
Evaluated by: mr-cal-bot
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 |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by PR #476: analyze now preserves permissions when unpacking charms, restoring language/framework detection; commit 5d4c725a, merged in fc7fa7f6. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #476 (CRAFT-429): charmcraft analyze now preserves extracted charm permissions, restoring language and framework detection. Commit 5d4c725a, merged as fc7fa7f6. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #476: analyze now preserves extracted charm permissions, allowing language and framework detection. Implemented in 5d4c725a and merged as fc7fa7f6. | |
| 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. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#476
(confidence 100%)
Merged fix for analyze extraction permissions and resulting unknown attributes.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #91 First pass at 'charmcraft init' | charmcraft | merged | Merged PR #91 delivered the first non-interactive charmcraft init scaffolding implementation; README improvements, extra options, and prompts were deferred (commit 0ebd9f87). | |
| #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). |