Repository navigation
composefs-oci: Use OCI Digest type for SHA-256 content digests - #278
Conversation
a9b1c1e to
749466a
Compare
c9ed86f to
281d143
Compare
jeckersb
left a comment
There was a problem hiding this comment.
Looks pretty good to me, just two spots where I think we probably don't want to ignore errors.
d0bbad3 to
8a81a3c
Compare
255e11e to
a925736
Compare
Johan-Liebert1
left a comment
There was a problem hiding this comment.
Tests seem to be failing due to feature gating. Approving this so as to not block it from being merged after tests pass
Motivated by an agent wanting to use `std::env::set_var`. Assisted-by: OpenCode (Claude Opus 4) Signed-off-by: Colin Walters <[email protected]>
Motivated by a discussion in bootc where we were parsing a digest into a String. We should use newtype wrappers for this in general because it's important to understand what places expect a digest. Also of note, we want to support sha512 for OCI descriptors as well, so any place that hardcodes sha256 is in general wrong. Introduce OciReference enum in cfsctl using the `@` prefix to unambiguously distinguish digests (`@sha256:abc...`) from named refs. This differs from the podman/docker convention where `@` appears between name and digest; here it is always a leading prefix. Ref names must not start with `@`; this is enforced by tag_image/write_manifest and flagged by fsck. CLI fields that always take a digest now use OciDigest directly via clap's value_parser. Assisted-by: OpenCode (Claude Opus 4) Signed-off-by: Colin Walters <[email protected]>
Fix collapsible_if warnings in composefs-http and cfsctl. Simplify the fedora CI job to run `just check` (which includes build, clippy, fmt-check, feature combos, and tests) instead of running each step separately. Assisted-by: OpenCode (Claude Opus 4) Signed-off-by: Colin Walters <[email protected]>
a925736 to
7ae960f
Compare
|
Worth noting that the reverse dependency test broke in #268 since it changed the signature for |
Yeah, I'm trying to start a branch for fixing the revdep test in https://github.com/bootc-dev/bootc/actions/runs/23874139671/job/69615292829?pr=2113 but the thing is all these changes tie together and snowball, so what I'd like to do is land as much as possible here, then circle back with consolidated bootc side changes. Maybe I'll just disable the revdep test here for now. |
The OCI digest cleanup breaks the bootc API boundary. Re-enable once bootc-dev/bootc#2044 lands on bootc main. Assisted-by: OpenCode (Claude Opus 4) Signed-off-by: Colin Walters <[email protected]>
Motivated by a discussion in bootc where we were parsing a digest into a String.
We should use newtype wrappers for this in general because it's important to understand what places expect a digest.
Also of note, we want to support sha512 for OCI descriptors as well, so any place that hardcodes sha256 is in general wrong.
Assisted-by: OpenCode (Claude Opus 4)