← 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 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.

Suggested action: keep open

Reason: Maintainer cjdcordeiro explicitly triaged this as a valid request but deferred it, stating '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' pending the store/revision concept. The annotation is absent from rockcraft/models/project.py (only version/title/created/description/licenses/base.digest are set), and the feature is blocked on an architectural decision about what 'revision' means, so it remains a legitimate open feature request rather than stale or a support question.

Impact: 45 Quick Win: 15.75 Staleness: 58 Complexity: 65 Confidence: 80 Support Request: 10

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
qwen/qwen3.8-27b
Impact: 45
Quick Win: 15.75
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.
qwen3.6-35b-a3b-mtp-q6
Staleness: 65
Complexity: 25
Confidence: 85
Support Request: 0
keep open Request to add org.opencontainers.image.revision annotation to rockcraft pack for git commit tracking. Maintainers deferred implementation due to ambiguity with internal revision concepts and new store features. No immediate action planned.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.