charmcraft upload of "bash"/"hooks only" charm doesn't work
Metadata
Current evaluation
Legacy hooks-only charms were unsupported; maintainers directed users to charm push, and the report closed without a code fix.
Resolution: closed not a bug
Reason: On 12 July 2021, maintainer facundobatista confirmed that charmcraft did not support packaging non-Operator Framework charms and pointed legacy users to the separate charm tooling. No resolving PR or commit was provided.
Evaluated by: mr-cal-bot
No scores available.
Issue body
I'm trying to upload a "hooks only charm" ............... that fails.
1. The documentation on publishing does not cover this scenario at all https://juju.is/docs/sdk/publishing
2. The video covering the process is now outdated and contains stuff that is invalid today. Such as referencing "--charm-file"-
3. charmcraft upload fails when a simple "hooks only" charm has been zip:ed into a file.
```
charmcraft upload gitlab-runner.charm
The indicated zip file 'gitlab-runner.charm' is not a charm ('metadata.yaml' not found) nor a bundle ('bundle.yaml' not found). (full execution logs in /home/erik/snap/charmcraft/common/charmcraft-log-afu1wu5p)
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed not a bug | Legacy hooks-only charms were unsupported; maintainers directed users to charm push, and the report closed without a code fix. | |
| stealth/space-bunny-alpha | — | closed stale | Abandoned without a code fix. Maintainers clarified that charmcraft required Operator Framework charms and directed legacy hooks-only charm users to charm push. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Abandoned by the author, who refactored to the Operator Framework. Maintainers clarified charmcraft requires Operator Framework charms, suggested charm push for legacy hooks-only charms, and noted charmcraft register must precede upload. No fix implemented. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. Author refactored to the Operator Framework. Maintainers clarified charmcraft currently does not support legacy bash charms, recommending the legacy charm tool instead, with future support planned. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned by the author who refactored to the Operator Framework. Maintainers clarified charmcraft only supports Operator Framework charms currently, with legacy support planned. No code changes were made. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Author closed after refactoring to the Operator Framework. Maintainers noted charmcraft lacks legacy hooks-only support but plans to add it. Related upload errors were resolved by running charmcraft register before upload. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #335 Ability to build a hooks only charm | charmcraft | closed | Closed unmerged; the --bare CLI was superseded by plugin-based building in #458 (9dc20872). Generic hooks-only charm support was later delivered by #596 (0dacae0a). |