Skip to content

Commit 8a0f25d

Browse files
authored
(bugfix): fix a bug in the containers image source (#1395)
where we always pulled image references using the canonical reference. Now we pull images using the reference provided to the source. Using only the canonical reference resulted in not respecting some mirroring configurations related to tags because we never used tag-based references. Signed-off-by: everettraven <[email protected]>
1 parent 3083879 commit 8a0f25d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/rukpak/source/containers_image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (i *ContainersImageRegistry) Unpack(ctx context.Context, bundle *BundleSour
8080
// copy.Image can concurrently pull all the layers.
8181
//
8282
//////////////////////////////////////////////////////
83-
dockerRef, err := docker.NewReference(canonicalRef)
83+
dockerRef, err := docker.NewReference(imgRef)
8484
if err != nil {
8585
return nil, fmt.Errorf("error creating source reference: %w", err)
8686
}

0 commit comments

Comments
 (0)