Add showing of `sha256` digest on `charmcraft resource-revisions`
Metadata
Current evaluation
SHA-256 is missing from resource-revisions table and JSON output despite being available in the API model. This scoped enhancement is awaiting maintainer triage.
Suggested action: needs triage
Reason: The report provides an exact command, expected use case, and desired output, while CharmResourceRevision already exposes sha256 and the command currently omits it from both formats. Adding the field and updating tests should be low-complexity, but the issue has no labels, comments, maintainer response, or implementation to establish that it has been triaged or resolved.
Evaluated by: mr-cal-bot
Impact:
45
Quick Win:
32
Complexity:
20
Confidence:
96
Actionability:
90
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 |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
45
Quick Win:
32
Complexity:
20
Confidence:
96
Actionability:
90
|
needs triage | SHA-256 is missing from resource-revisions table and JSON output despite being available in the API model. This scoped enhancement is awaiting maintainer triage. | |
| qwen/qwen3.6-35b-a3b |
Impact:
65
Quick Win:
44
Complexity:
20
Confidence:
85
Actionability:
85
|
keep open | Feature request to add sha256 digest column to `charmcraft resource-revisions` output for use with `juju attach-resource` downgrades. | |
| qwen/qwen3.8-27b |
Impact:
40
Quick Win:
32
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. |
Update history
No update history recorded yet.
Related issues
No related issues found above the similarity threshold.