client filesystem: remove .dagger from default exclusion
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
3e8c9379b5
commit
0a6fa03c16
@ -125,12 +125,9 @@ func (t clientFilesystemReadTask) readFS(ctx context.Context, pctx *plancontext.
|
|||||||
opts = append(opts, llb.IncludePatterns(dir.Include))
|
opts = append(opts, llb.IncludePatterns(dir.Include))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Excludes .dagger directory by default
|
|
||||||
excludePatterns := []string{"**/.dagger/"}
|
|
||||||
if len(dir.Exclude) > 0 {
|
if len(dir.Exclude) > 0 {
|
||||||
excludePatterns = dir.Exclude
|
opts = append(opts, llb.ExcludePatterns(dir.Exclude))
|
||||||
}
|
}
|
||||||
opts = append(opts, llb.ExcludePatterns(excludePatterns))
|
|
||||||
|
|
||||||
// FIXME: Remove the `Copy` and use `Local` directly.
|
// FIXME: Remove the `Copy` and use `Local` directly.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user