Skip to content

Commit accc2f3

Browse files
committed
Fix SOCI image convertion regression for 0.12.0 release
Signed-off-by: Henry Wang <henwang@amazon.com>
1 parent 3696771 commit accc2f3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/snapshotterutil/sociutil.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ func ConvertSociIndexV2(ctx context.Context, client *client.Client, srcRef strin
117117

118118
sociCmd.Args = append(sociCmd.Args, "convert")
119119

120+
// The following option temporarily fix the image conversion regression in SOCI v0.12.0
121+
// https://github.com/awslabs/soci-snapshotter/issues/1789
122+
// TODO: remove after the bug is fixed in SOCI
123+
if err := CheckSociVersion("0.12.0"); err == nil {
124+
sociCmd.Args = append(sociCmd.Args, "--force")
125+
}
126+
120127
if sOpts.AllPlatforms {
121128
sociCmd.Args = append(sociCmd.Args, "--all-platforms")
122129
} else if len(sOpts.Platforms) > 0 {

0 commit comments

Comments
 (0)