Skip to content

Commit dad01a1

Browse files
committed
schema/manifest_backwards_compatibility_test: Fix conversion direction
We want to go from the Docker type (the key) to the OCI type (the value), not the other way around. Signed-off-by: W. Trevor King <[email protected]>
1 parent 4ba6b9d commit dad01a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema/manifest_backwards_compatibility_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var compatMap = map[string]string{
3838
func convertFormats(input string) string {
3939
out := input
4040
for k, v := range compatMap {
41-
out = strings.Replace(out, v, k, -1)
41+
out = strings.Replace(out, k, v, -1)
4242
}
4343
return out
4444
}

0 commit comments

Comments
 (0)