Skip to content

oci: split pulling code to new file, skopeo.rs - #138

Merged
allisonkarlitskaya merged 1 commit into
composefs:mainfrom
allisonkarlitskaya:split-skopeo
Jun 3, 2025
Merged

allisonkarlitskaya merged 1 commit into
composefs:mainfrom
allisonkarlitskaya:split-skopeo

Conversation

@allisonkarlitskaya

Copy link
Copy Markdown
Collaborator

This code pulls images via containers-image-proxy-rs (which is a wrapper around skopeo). It's a bit too large to have it in the top-level lib.rs, and we're about to add an alternate implementation, so split it out.

We keep a pull() function in place for compatibility reasons to avoid needing to update all callers: we will start using this function to dispatch to the correct implementation depending on the reference format.

This code pulls images via containers-image-proxy-rs (which is a
wrapper around skopeo).  It's a bit too large to have it in the
top-level lib.rs, and we're about to add an alternate implementation, so
split it out.

We keep a pull() function in place for compatibility reasons to avoid
needing to update all callers: we will start using this function to
dispatch to the correct implementation depending on the reference
format.

Signed-off-by: Allison Karlitskaya <[email protected]>
@allisonkarlitskaya

allisonkarlitskaya commented Jun 3, 2025 •

Copy link
Copy Markdown
Collaborator Author

Oh. That's worrying...

...

 kernel                x86_64 6.16.0-0.rc0.250602gcd2e103d57e5.10.fc43 rawhide      0.0   B

...

[    2.826488] composefs-setup-root[287]: Error: Invalid argument (os error 22)
[FAILED] Failed to start composefs-setup-root.service.

See 'systemctl status composefs-setup-root.service' for details.

Definitely unrelated to the changes here. Very likely fallout from https://lore.kernel.org/linux-fsdevel/20250526213217.GY2023217@ZenIV/
I'm gonna have to dig into this a bit...

@allisonkarlitskaya
allisonkarlitskaya merged commit 3b6c649 into composefs:main Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants