bootc-dev / bootc-dev/bootc

bootc expects `org.opencontainers.image.version` to be set as a label, not an annotation

オープン
#2,136 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
2.3k
フォーク
230
平均マージ
3日 12時間
マージ済み PR(30日)
38

説明

Hello,

I stumbled across a minor issue with the way bootc looks for an image's version (when using `bootc status`).
It expects the version to be set as a label either with the key `org.opencontainers.image.version` or with the key `version` (see [this function](https://github.com/bootc-dev/bootc/blob/b1fe5d697855189f64ba87cff5cfb058f91792f6/crates/ostree-ext/src/container/mod.rs#L605)).

However, the OpenContainers image specification only defines `org.opencontainers.image.version` as a key inside annotations (see [here](https://specs.opencontainers.org/image-spec/annotations/#pre-defined-annotation-keys)).

To match the OpenContainers spec, would it be possible to change `version_for_config` to look for `org.opencontainers.image.version` in the annotations, then look for `version` in the labels, or would this be considered too much of a breaking change?

Best regards,
François

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start with version_for_config in crates/ostree-ext/src/container/mod.rs and compare its current label lookup with the OpenContainers annotation specification linked in the issue. Verify the behavior through bootc status using image metadata, and consider the change complete when the OCI version annotation is recognized while the existing version label remains supported.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
operating-systems
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
70/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。