Don't use pointers for image interfaces (#51)

* Don't use pointers for image interfaces

* Also for oci layout

* Remove default case
This commit is contained in:
James Carnegie
2024-06-14 10:28:14 +01:00
committed by GitHub
parent 8ba9656645
commit e44390d2bc
2 changed files with 11 additions and 16 deletions

View File

@@ -130,7 +130,7 @@ func TestReferencesInDifferentRepo(t *testing.T) {
// push signed attestation image to the ref server
for _, img := range signedImages {
// push references using subject-digest.att convention
err = mirror.PushToRegistry(&img.Image, fmt.Sprintf("%s/%s:tag-does-not-matter", refServerUrl.Host, repoName))
err = mirror.PushToRegistry(img.Image, fmt.Sprintf("%s/%s:tag-does-not-matter", refServerUrl.Host, repoName))
require.NoError(t, err)
}
mfs2, err := attIdx.Index.IndexManifest()