← Back to issue list

Add support for `org.opencontainers.image.revision` annotation

View original Github issue

Metadata

Project
rockcraft
Number
#496
Type
issue
State
open
Author
carlcsaposs-canonical
Labels
—
Created
Updated
Closed
—

Current evaluation

Feature request to emit org.opencontainers.image.revision on packed rocks. Maintainer acknowledged the need but deferred implementation until the store exists, citing ambiguity with Craft's own revision concept; no code support yet.

Suggested action: keep open

Reason: Maintainer @cjdcordeiro explicitly wrote 'Feel free to keep the issue open for revisiting in the future, but for now, I'm afraid there won't be any immediate action on this' — a deferral, not a rejection, of a valid request with a concrete use case (mapping a rock revision back to source via charm revision/digest, as described with charmed-postgresql-rock). Code confirms it is still unimplemented: rockcraft/models/project.py:425-441 emits only version/title/created/description/licenses/base.digest, with no source or revision key. The gap is design, not code, since the field's meaning depends on the incoming store's own revision semantics.

Evaluated by: mr-cal-bot

Impact: 42 Quick Win: 8 Complexity: 48 Confidence: 82 Actionability: 38

Issue body

### What needs to get done Add option to `rockcraft pack` to specify [org.opencontainers.image.revision](https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys) annotation value or automatically use latest git commit hash ### Why it needs to get done So that it's possible to find git commit hash that a rock was built from

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 42
Quick Win: 8
Complexity: 48
Confidence: 82
Actionability: 38
keep open Feature request to emit org.opencontainers.image.revision on packed rocks. Maintainer acknowledged the need but deferred implementation until the store exists, citing ambiguity with Craft's own revision concept; no code support yet.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 11
Complexity: 40
Confidence: 85
Actionability: 60
keep open Feature request to add org.opencontainers.image.revision annotation to rockcraft pack. Maintainers have deferred implementation until the store is in place, citing concerns about determinism and future ambiguity.
qwen/qwen3.8-27b
Impact: 45
Quick Win: 16
Staleness: 58
Complexity: 65
Confidence: 80
Support Request: 10
keep open Feature request to add org.opencontainers.image.revision annotation to rockcraft pack (git commit hash or explicit value) for source traceability. Maintainer triaged as valid but deferred pending the store/revision concept; not yet implemented.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 80
Confidence: 85
Support Request: 10
keep open Feature request to add org.opencontainers.image.revision annotation to rockcraft pack for source traceability. Maintainer deferred implementation due to architectural conflicts with upcoming store revisions, but left it open for future reconsideration.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 60
Confidence: 80
Support Request: 10
keep open Feature request to add OCI revision annotation. Maintainer deferred implementation pending store integration and semantic clarity, suggesting the issue remain open for future review.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 35
Confidence: 85
Support Request: 10
keep open Feature request to add OCI revision annotation for build traceability. Maintainer acknowledged it as valid but deferred implementation pending store architecture and revision semantics clarification. Currently inactive.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.