Skip to content

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Mar 9, 2023

Move the multi-arch code to copy/multi.go, and the single-instance code (including handling configs and layers) to copy/single.go.

Other than renaming copyOneImage to copySingleImage, only moves unchanged code, so this should not change behavior.

See individual commit messages for details.

Cc: @flouthoc

mtrmac added 6 commits March 9, 2023 17:37
Only moves unchanged code (in the same order), should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Only moves unchanged code, should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Only moves unchanged code, should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Lead with the user-visible API.

Only moves unchanged code, should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Only moves unchanged code (other than sharing a single var() block),
should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
... to match the single.go file name.

(Alternatively, we could name it copySingleInstance...)

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Copy link
Contributor

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks @mtrmac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants