mirror of
https://github.com/moby/buildkit.git
synced 2026-11-06 05:16:45 +00:00
ImageWriter.Commit now returns the committed remotes (the rewritten layers when rewrite-timestamp is set) as Result[Remote], and unpackImage consumes them instead of re-fetching the original (non-rewritten) layers from the source ref. The provider of a rewritten remote preserves the Unlazier of the original provider, so that non-rewritten lazy layers can still be fetched before unpacking. Fixes issue 4230 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>