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

Export copyFile #106

Merged
merged 1 commit into from
Apr 16, 2018
Merged

Export copyFile #106

merged 1 commit into from
Apr 16, 2018

Conversation

cpuguy83
Copy link
Member

No description provided.

@AkihiroSuda
Copy link
Member

cc @stevvooe @dmcgowan

@dmcgowan
Copy link
Member

dmcgowan commented Apr 6, 2018

Where is this planned on being used? I know we had some plans for this and possibly merging it with some functionality for buildkit's fsutil and Moby.

I am fine merging this and changing it later if we need to though.

LGTM

@cpuguy83
Copy link
Member Author

cpuguy83 commented Apr 6, 2018

I was going to use this for something... what I don't remember... maybe it was in moby.

fs/copy.go Outdated
func copyFile(source, target string) error {
// CopyFile copies the source file to the target.
// The most efficient means of copying is used for the platform.
func CopyFile(source, target string) error {
Copy link
Member

Choose a reason for hiding this comment

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

We usually use LHS notation for the args in this package.

Should be CopyFile(target, source string)

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

Signed-off-by: Brian Goff <[email protected]>
Copy link
Member

@dmcgowan dmcgowan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp merged commit c6cef34 into containerd:master Apr 16, 2018
@cpuguy83 cpuguy83 deleted the export_copy_file branch May 23, 2018 14:54
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.

5 participants