Skip to content

Commit 687b4ec

Browse files
committed
Fix error when using checksum method and no file exists for a source glob
Closes #131
1 parent 8bdf5c5 commit 687b4ec

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/status/glob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func glob(dir string, globs []string) (files []string, err error) {
1919
}
2020
f, err := zglob.Glob(g)
2121
if err != nil {
22-
return nil, err
22+
continue
2323
}
2424
files = append(files, f...)
2525
}

testdata/checksum/Taskfile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ build:
22
cmds:
33
- cp ./source.txt ./generated.txt
44
sources:
5+
- ./**/glob-with-inexistent-file.txt
56
- ./source.txt
67
generates:
78
- ./generated.txt

0 commit comments

Comments
 (0)