← Back to issue list

Add a "--release" option to the "upload" command

View original Github issue

Metadata

Project
charmcraft
Number
#126
Type
issue
State
closed
Author
facundobatista
Labels
—
Created
Updated
Closed

Current evaluation

Implemented charmcraft upload --release in canonical/charmcraft#255 (merge 9064a3f3, feature bc06a62a); #457 added resource support and shipped in Charmcraft 1.1.2.

Resolution: closed resolved

Reason: The requested option was implemented by merged PR #255, with resolving commit 9064a3f3 and feature commit bc06a62a. Follow-up PR #457 (b5d735b4) added --resource support and was released in Charmcraft 1.1.2.

Evaluated by: mr-cal-bot

No scores available.

Issue body

So the user could do `charmcraft upload --release=channel` in one simple step (it doesn't matter if those are two operations by charmcraft in the store)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Implemented charmcraft upload --release in canonical/charmcraft#255 (merge 9064a3f3, feature bc06a62a); #457 added resource support and shipped in Charmcraft 1.1.2.
stealth/space-bunny-alpha — closed resolved Implemented upload --release in PR #255 (merge 9064a3f3); resource support followed in PR #457 and shipped in Charmcraft 1.1.2.
stealth/space-bunny-alpha — closed resolved Implemented upload --release in PR #255 (merge 9064a3f3, feature bc06a62a); PR #457 (b5d735b4) added the requested resource support, released in Charmcraft 1.1.2.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The maintainer noted the feature requires resource support, but no pull request was opened or merged, indicating the request was abandoned.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The requested combined upload and release command with resource support was abandoned.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The request to add --release to the upload command was abandoned. The maintainer noted --resource support was also required, but no pull request or fix was submitted.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The maintainer noted the feature requires --resource support, but no pull request or fix was submitted, leaving the request abandoned.

Update history

No update history recorded yet.

Related work

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

    Merged implementation of the upload --release option; resolving merge commit 9064a3f3.

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

    Added resource support for upload --release, addressing the maintainer comment; merge commit b5d735b4.

Related issues

Issue Project State Summary Similarity
#457 Allow including resources when releasing charms directly in the upload command (CRAFT-381). charmcraft merged Merged PR #457 (b5d735b4), adding --resource support to upload --release and fixing #456; the fix shipped in Charmcraft 1.1.2.
83%
#1979 `charmcraft upload` should allow a user to also release the charm charmcraft open Requests single-command charm upload+release with automatic OCI resource handling. --release flag already exists; remaining gap is resource upload by image reference instead of revision number.
81%
#255 Add the option to release when uploading a charm or bundle charmcraft merged Merged PR #255 as 9064a3f3, adding upload-time release channel support for charms and bundles; implementation commit bc06a62a.
81%
#368 feature request: charmcraft release=last-revision charmcraft closed No code change was needed: charmcraft upload <charm> --release=edge already uploads and releases the newly created revision.
75%
#840 Add command line options to charmcraft upload to enable publishing the charm and its resources with a single command run charmcraft closed Maintainers declined atomic creation of a charm and new resources in one command, recommending an external script; no PR or commit implemented #840.
74%
#1313 Make it easier to release charms in CI and in general charmcraft open Single-command charm upload and release with OCI resources remains unimplemented; upload accepts only existing resource revisions, so users must upload resources first and track returned IDs.
72%
#1101 add a "version" option on charmcraft release cli charmcraft closed Rejected: Charmhub only obtains a charm’s version from the built artifact, so Charmcraft did not add a release version option; metadata-based versioning remains separate work.
72%
#847 Improve the 'release' response when resources are automatically released with the charm charmcraft open Enhance charmcraft release output to list resources Charmhub automatically attaches; the backend fix is available, but current output only reports resources passed with --resource.
71%
#456 charmcraft upload foo.charm --release=edge gives internal error charmcraft closed Fixed the upload --release regression in PR #457, merged as b5d735b4 and shipped in Charmcraft 1.1.2 to the candidate and edge channels.
71%