From 0a6fa03c162d9d863bbbe8f039bc509efbd6e742 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Thu, 31 Mar 2022 19:20:19 -0700 Subject: [PATCH] client filesystem: remove .dagger from default exclusion Signed-off-by: Andrea Luzzardi --- plan/task/clientfilesystemread.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plan/task/clientfilesystemread.go b/plan/task/clientfilesystemread.go index 3dc6a5e3..733c53ae 100644 --- a/plan/task/clientfilesystemread.go +++ b/plan/task/clientfilesystemread.go @@ -125,12 +125,9 @@ func (t clientFilesystemReadTask) readFS(ctx context.Context, pctx *plancontext. opts = append(opts, llb.IncludePatterns(dir.Include)) } - // Excludes .dagger directory by default - excludePatterns := []string{"**/.dagger/"} 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. //