← Back to issue list

feat: backport rock upload to charmcraft 2.x

View original Github issue

Metadata

Project
charmcraft
Number
#1708
Type
pull request
State
merged
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #1708 (commit 7b86722c) backporting skopeo-based direct OCI-image resource uploads to Charmcraft 2.7+, letting `upload-resource` pass `docker://` URLs straight to skopeo.

Resolution: closed resolved

Reason: The PR itself was merged with two approvals, landing as commit 7b86722c ('feat: backport rock upload to charmcraft 2.x (#1708)'), adding the 'Passing path directly to skopeo' code path (14 files, +414/-34).

Evaluated by: mr-cal-bot

No scores available.

Issue body

Allows Charmcraft 2.7+ to use skopeo urls directly when uploading an oci-image resource. Example: ``` $ charmcraft upload-resource lengau-test-charm example-image --image docker://ghcr.io/canonical/charmed-mysql:8.0.36-22.04_edge Image not found locally. Passing path directly to skopeo. Revision 6 created of resource 'example-image' for charm 'lengau-test-charm'. $ ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #1708 (commit 7b86722c) backporting skopeo-based direct OCI-image resource uploads to Charmcraft 2.7+, letting `upload-resource` pass `docker://` URLs straight to skopeo.
stealth/space-bunny-alpha — closed resolved Merged #1708, backporting direct skopeo URL uploads for OCI-image resources to Charmcraft 2.7+.
qwen/qwen3.6-35b-a3b — — Merged a backport enabling Charmcraft 2.7+ to use skopeo URLs directly for OCI image resource uploads. Approved by two reviewers, passed CI, and merged with 414 additions and 34 deletions across 14 files.
qwen3.6-35b-a3b-mtp-q6 — — Merged by maintainer lengau, this change backports rock upload to Charmcraft 2.x. It enables Charmcraft 2.7+ to directly use skopeo URLs for uploading OCI-image resources without requiring local image storage.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#1696 (confidence 88%)

    Upstream feature 'feat: upload OCI image resources with skopeo' (merged, fb8680ec) that #1708 backports to the 2.x branch.

  • Related To: canonical/charmcraft#1684 (confidence 80%)

    Original feature issue asking for direct rock/registry-to-registry uploads, resolved by #1696 and carried into 2.x by this backport.

  • Related To: canonical/charmcraft#1685 (confidence 45%)

    Reported as only partially addressed by #1696; relevant background for the backported skopeo upload behaviour.

Related issues

Issue Project State Summary Similarity
#1696 feat: upload OCI image resources with skopeo charmcraft merged Merged as fb8680ec, adding skopeo-based OCI/rock uploads, including direct file and cross-registry copies; fixed #1684 and partially addressed #1685.
76%
#1684 Allow Charmcraft to upload a rock directly from the file or directly between registries charmcraft closed Direct rock-file and cross-registry uploads were implemented with skopeo in PR #1696 (fb8680ec), then backported to Charmcraft 2.x by PR #1708 (7b86722c).
73%
#1693 Add option to `upload-resource` to upload an OCI image directly from a file. charmcraft closed Closed by lengau as a duplicate of #1684. The feature (upload-resource accepting an OCI file/rock directly) landed in merged PR #1696, commit fb8680ec "feat: upload OCI image resources with skopeo", backported to 2.x in #1708.
72%
#1462 feat: multi-architecture resource uploads charmcraft merged Merged PR #1462 in commit 566103b8, adding client-side multi-architecture resource uploads to Charmhub per ST104.
71%