Charmcraft release should be able to attach a resource during revision creation
Metadata
Current evaluation
Closed without resolution. A maintainer could not reproduce the reported failure to attach resources during initial revision creation and requested additional details. The issue was abandoned due to lack of follow-up.
Suggested action: —
No scores available.
Issue body
Charmcraft uses the same command to release a charm revision and to attach resources to a revision. However, `charmcraft release` doesn't allow for a resource to be attached in the moment the revision is being created, so it forces the user to run the same command twice:
```
$ charmcraft resource-revisions jenkins-agent-k8s jenkins-agent-image
Revision Created at Size
2 2021-05-25 143B
1 2021-05-25 143B
$ charmcraft status jenkins-agent-k8s
Track Channel Version Revision
latest stable 3 3
candidate ↑ ↑
beta ↑ ↑
edge 2 2
$ charmcraft release jenkins-agent-k8s -r 3 -c edge --resource=jenkins-agent-image:2
Store failure! Resource 'jenkins-agent-image' is not valid for charm with id 'dsE0SLdKWW3RvK8fnJaqGCyNZkk6CRYo' and revision 3; Resource 'jenkins-agent-image' with revision 2 does not exist for charm with id 'dsE0SLdKWW3RvK8fnJaqGCyNZkk6CRYo' and revision 3 (full execution logs in /...)
$ charmcraft release jenkins-agent-k8s -r 3 -c edge
Revision 3 of charm 'jenkins-agent-k8s' released to edge
$ charmcraft release -r 3 -c edge jenkins-agent-k8s --resource jenkins-agent-image:2
Revision 3 of charm 'jenkins-agent-k8s' released to edge (attaching resources: 'jenkins-agent-image' r2)
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. A maintainer could not reproduce the reported failure to attach resources during initial revision creation and requested additional details. The issue was abandoned due to lack of follow-up. | |
| qwen/qwen3.6-35b-a3b | — | — | Charmcraft release fails to attach resources during initial revision creation. Maintainers requested reproduction steps and demonstrated a working scenario. Without further details, the issue was closed as unactionable. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Maintainer requested reproduction steps and provided a counter-example showing the feature works in some cases. Issue abandoned pending further user feedback. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Abandoned and closed as unactionable. The maintainer could not reproduce the reported limitation and requested further details. No fix was implemented, leaving the feature request pending additional information from the author. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without a fix. Maintainer questioned the reported limitation regarding resource attachment during revision creation, provided a working test case, and requested further details. No code changes were made. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #679 Charmcraft should allow resource revisions == 0 when specifying uploads | charmcraft | closed | Closed without resolution or implementation. The request to allow resource revision 0 in charmcraft release commands received no discussion or linked pull requests. |