Skip to content

Commit e8dc913

Browse files
authored
Merge pull request #4469 from ChengyuZhu6/manifest-create-fix
manifest: normalize references by adding docker.io/library prefix
2 parents fd5c7cb + e1cabc4 commit e8dc913

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/nerdctl/manifest/manifest_create_linux_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func TestManifestCreate(t *testing.T) {
9292
}
9393
},
9494
Data: test.WithLabels(map[string]string{
95-
"output": "Created manifest list ",
95+
"output": "Created manifest list docker.io/library/" + manifestListName,
9696
}),
9797
},
9898
{
@@ -126,7 +126,7 @@ func TestManifestCreate(t *testing.T) {
126126
}
127127
},
128128
Data: test.WithLabels(map[string]string{
129-
"output": "Created manifest list",
129+
"output": "Created manifest list docker.io/library/" + manifestListName + "-with-amend-flag",
130130
}),
131131
},
132132
}

pkg/cmd/manifest/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ func Create(ctx context.Context, listRef string, manifestRefs []string, options
8282
}
8383
}
8484

85-
return listRef, nil
85+
return parsedListRef.String(), nil
8686
}

0 commit comments

Comments
 (0)