Support darwin clonefile#223
Merged
Merged
Conversation
Signed-off-by: Derek McGowan <derek@mcg.dev>
samuelkarp
approved these changes
May 16, 2023
|
|
||
| package fs | ||
|
|
||
| var copyFile = openAndCopyFile |
Member
There was a problem hiding this comment.
I'm not wild about a var here vs func copyFile(target, source string) error { return openAndCopyFile(target, source) } but since it's private it's a very minor concern.
Member
Author
There was a problem hiding this comment.
Yeah me either, it just seemed cleaner though. If there is an argument to be made that var is slower, then will update.
dcantah
approved these changes
May 17, 2023
AkihiroSuda
reviewed
May 17, 2023
| @@ -0,0 +1,38 @@ | |||
| //go:build darwin || freebsd || openbsd || netbsd || solaris | |||
| // +build darwin freebsd openbsd netbsd solaris | |||
Member
Author
There was a problem hiding this comment.
oh yeah, those must have been ignored anyway, removed
AkihiroSuda
requested changes
May 17, 2023
AkihiroSuda
left a comment
Member
There was a problem hiding this comment.
Build tags seem wrong, LGTM other than that
Signed-off-by: Derek McGowan <derek@mcg.dev>
Member
|
Let's release v0.4.0 after merging this |
31c4d57 to
30cf84d
Compare
AkihiroSuda
approved these changes
May 17, 2023
|
Nice! This makes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds clonefile support on copy for Darwin.
Added benchmark to show it is working