Skip to content

Commit 9994905

Browse files
authored
Merge pull request containerd#4623 from henry118/fix-soci-test
Fix TestImageConvert/soci* tests for v0.12.0 release
2 parents 3696771 + accc2f3 commit 9994905

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)