From accc2f38793f5f1bfb53c9f5b3b96e2a047ccdc4 Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Thu, 27 Nov 2025 05:38:22 +0000 Subject: [PATCH] Fix SOCI image convertion regression for 0.12.0 release Signed-off-by: Henry Wang --- pkg/snapshotterutil/sociutil.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/snapshotterutil/sociutil.go b/pkg/snapshotterutil/sociutil.go index 82e8773ce66..4f55c917eb1 100644 --- a/pkg/snapshotterutil/sociutil.go +++ b/pkg/snapshotterutil/sociutil.go @@ -117,6 +117,13 @@ func ConvertSociIndexV2(ctx context.Context, client *client.Client, srcRef strin sociCmd.Args = append(sociCmd.Args, "convert") + // The following option temporarily fix the image conversion regression in SOCI v0.12.0 + // https://github.com/awslabs/soci-snapshotter/issues/1789 + // TODO: remove after the bug is fixed in SOCI + if err := CheckSociVersion("0.12.0"); err == nil { + sociCmd.Args = append(sociCmd.Args, "--force") + } + if sOpts.AllPlatforms { sociCmd.Args = append(sociCmd.Args, "--all-platforms") } else if len(sOpts.Platforms) > 0 {