From 06a476b7c9bfc0126e5e186cbeffb49033e45707 Mon Sep 17 00:00:00 2001 From: itowlson Date: Wed, 18 Feb 2026 09:48:36 +1300 Subject: [PATCH] Make OCI component resolver available to SpinKube Signed-off-by: itowlson --- crates/oci/src/loader.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/crates/oci/src/loader.rs b/crates/oci/src/loader.rs index f55a124d8..cc82eb9b7 100644 --- a/crates/oci/src/loader.rs +++ b/crates/oci/src/loader.rs @@ -100,7 +100,17 @@ impl OciLoader { } } - async fn resolve_component_content_refs( + /// Resolves all digest references in the component (including source, dependencies, + /// and asset files). Wasm sources are replaced with cache paths. Asset files are + /// collected to a mount path, and the component `files` amended to reflect that. + /// + /// This function assumes that: + /// + /// 1. All resolvable items have digest or inline sources. + /// 2. All digest-addressed content is already in the cache. + /// + /// If either of these is not true, the function errors. + pub async fn resolve_component_content_refs( &self, component: &mut LockedComponent, cache: &Cache,