Skip to content

Commit

Permalink
Append rather than overwrite include patterns and exclude patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronlehmann committed May 1, 2021
1 parent 642d4bb commit 39a579e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/llbutil/llbutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func WithIncludePatterns(includePatterns []string) CopyIncludePatterns {
}

func (ip CopyIncludePatterns) SetCopyOption(ci *llb.CopyInfo) {
ci.IncludePatterns = ([]string)(ip)
ci.IncludePatterns = append(ci.IncludePatterns, ip...)
}

type CopyExcludePatterns []string
Expand All @@ -143,7 +143,7 @@ func WithExcludePatterns(excludePatterns []string) CopyExcludePatterns {
}

func (ep CopyExcludePatterns) SetCopyOption(ci *llb.CopyInfo) {
ci.ExcludePatterns = ([]string)(ep)
ci.ExcludePatterns = append(ci.ExcludePatterns, ep...)
}

type Target string
Expand Down

0 comments on commit 39a579e

Please sign in to comment.