-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add includePatterns and excludePatterns support for copy #239
Add includePatterns and excludePatterns support for copy #239
Conversation
LGTM, think we just need to update generated content with |
pkg/llbutil/llbutil.go
Outdated
} | ||
|
||
func (ip CopyIncludePatterns) SetCopyOption(ci *llb.CopyInfo) { | ||
ci.IncludePatterns = ([]string)(ip) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to append? What do users expect when they do something like:
copy foo "/" "/" with option {
includePatterns "a"
includePatterns "b"
}
This example may be in practical scenarios when trying to refactor an copy::option
function with common patterns but also want to extend with additional patterns.
Overall looks good. Pending upstream PRs to be merged. |
39a579e
to
dc3615d
Compare
@hinshun: Updated. |
Tested with: ``` fs busybox() { image "busybox" } fs copyWithPatterns() { copy busybox "/bin" "/" with option { includePatterns "x*" excludePatterns "xargs" } download "." } ```
dc3615d
to
e60d1d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested myself, LGTM on test green
Tested with:
Depends on upstream PRs tonistiigi/fsutil#101 and moby/buildkit#2082