diff --git a/internal/status/glob.go b/internal/status/glob.go index f6edb976..f0b5dbe6 100644 --- a/internal/status/glob.go +++ b/internal/status/glob.go @@ -19,7 +19,7 @@ func glob(dir string, globs []string) (files []string, err error) { } f, err := zglob.Glob(g) if err != nil { - return nil, err + continue } files = append(files, f...) } diff --git a/testdata/checksum/Taskfile.yml b/testdata/checksum/Taskfile.yml index aaa1b1f4..4f4a2362 100644 --- a/testdata/checksum/Taskfile.yml +++ b/testdata/checksum/Taskfile.yml @@ -2,6 +2,7 @@ build: cmds: - cp ./source.txt ./generated.txt sources: + - ./**/glob-with-inexistent-file.txt - ./source.txt generates: - ./generated.txt