bootc expects `org.opencontainers.image.version` to be set as a label, not an annotation
- Ngôn ngữ chính
- Rust
- Star
- 2.3k
- Fork
- 230
- Merge trung bình
- 3 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 36
Mô tả
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
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với version_for_config trong crates/ostree-ext/src/container/mod.rs và so sánh việc tra cứu label hiện tại của nó với đặc tả annotation của OpenContainers được liên kết trong issue. Xác minh hành vi thông qua bootc status bằng metadata của image, và coi thay đổi là hoàn tất khi annotation phiên bản OCI được nhận diện trong khi label phiên bản hiện có vẫn được hỗ trợ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- rust
- Lĩnh vực
- operating-systems
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 70/100