← Back to issue list

Add showing of `sha256` digest on `charmcraft resource-revisions`

View original Github issue

Metadata

Project
charmcraft
Number
#2216
Type
issue
State
open
Author
hloeung
Labels
Created
Updated
Closed

Current evaluation

Feature request to display the sha256 digest in `charmcraft resource-revisions` output (needed for `juju attach-resource` downgrades). Unlabelled, no maintainer response, and the current code still omits the digest even though the store model already provides it.

Suggested action: needs triage

Reason: No labels, no assignee, and zero comments from maintainers in 538 days, so it has never been triaged. The request is still valid: `ListResourceRevisionsCommand.run` in charmcraft/application/commands/store.py only emits revision/created-at/size/architectures, while the craft-store `CharmResourceRevision` model (used in tests/integration/commands/test_resource_revisions.py with `sha256=""`) already carries the digest, so it's a small, well-scoped enhancement worth keeping open for triage.

Impact: 40 Quick Win: 32.0 Staleness: 65 Complexity: 20 Confidence: 80 Support Request: 5

Issue body

### Bug Description Sometimes, you want to find the full sha256 digest of a resource. In particular, to downgrade via `juju attach-resource`, e.g.: ``` juju attach-resource wordpress-k8s wordpress-image=registry.jujucharms.com/charm/600jll14kzaovquhnzyajwwvvcp8a6s1a2tgb/wordpress-image@sha256:f7e83e6005a30a12aa3a9aaa6c34aed2f008440290daead59ad825c7f2a43801 ``` Unfortunately, `charmcraft resource-revisions` doesn't show this: ``` $ charmcraft resource-revisions wordpress-k8s wordpress-image Revision Created at Size Architectures 119 2025-03-10T13:08:37Z 510B amd64 118 2025-03-10T10:27:21Z 510B amd64 117 2025-03-10T06:29:21Z 510B amd64 116 2025-02-10T08:28:55Z 510B amd64 115 2025-02-10T07:15:05Z 510B amd64 114 2024-12-04T16:57:57Z 510B amd64 113 2024-12-04T06:47:19Z 510B amd64 112 2024-12-03T13:25:47Z 510B amd64 111 2024-10-08T12:18:45Z 510B amd64 110 2024-10-07T13:36:24Z 510B amd64 109 2024-09-19T15:44:48Z 510B amd64 108 2024-09-17T18:16:30Z 510B amd64 ... ``` ### To Reproduce charmcraft resource-revisions wordpress-k8s wordpress-image ### Environment $ charmcraft version charmcraft 3.4.3.post53+gc4d43add ### charmcraft.yaml ```yaml N/A ``` ### Relevant log output ```shell N/A ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 40
Quick Win: 32.0
Staleness: 65
Complexity: 20
Confidence: 80
Support Request: 5
needs triage Feature request to display the sha256 digest in `charmcraft resource-revisions` output (needed for `juju attach-resource` downgrades). Unlabelled, no maintainer response, and the current code still omits the digest even though the store model already provides it.
qwen/qwen3.6-35b-a3b
Staleness: 90
Complexity: 15
Confidence: 85
Support Request: 10
needs triage Feature request to display sha256 digests in charmcraft resource-revisions output. Currently inactive for over a year with no maintainer response or labels.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 20
Confidence: 80
Support Request: 15
needs triage Request to add sha256 digest column to charmcraft resource-revisions output for use with juju attach-resource. Unlabelled, no maintainer comments, inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 20
Confidence: 85
Support Request: 15
needs triage Request to display sha256 digests in charmcraft resource-revisions output to support resource downgrades. Untriaged, no maintainer comments, inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 75
Complexity: 20
Confidence: 85
Support Request: 20
needs triage Feature request to display sha256 digests in charmcraft resource-revisions for juju attach-resource downgrades. Open, unassigned, with zero comments and over 300 days of inactivity. Needs triage and implementation.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.