Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split copy/copy.go into three files #1878

Merged
merged 6 commits into from
Mar 9, 2023
Merged

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

Only moves unchanged code (in the same order), should not change behavior.

Signed-off-by: Miloslav Trmač <[email protected]>
Only moves unchanged code, should not change behavior.

Signed-off-by: Miloslav Trmač <[email protected]>
Only moves unchanged code, should not change behavior.

Signed-off-by: Miloslav Trmač <[email protected]>
Lead with the user-visible API.

Only moves unchanged code, should not change behavior.

Signed-off-by: Miloslav Trmač <[email protected]>
Only moves unchanged code (other than sharing a single var() block),
should not change behavior.

Signed-off-by: Miloslav Trmač <[email protected]>
... to match the single.go file name.

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

Should not change behavior.

Signed-off-by: Miloslav Trmač <[email protected]>
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