mirror of
https://github.com/go-task/task.git
synced 2025-01-12 04:34:11 +02:00
Fix error when using checksum method and no file exists for a source glob
Closes #131
This commit is contained in:
parent
8bdf5c554d
commit
687b4ec837
@ -19,7 +19,7 @@ func glob(dir string, globs []string) (files []string, err error) {
|
|||||||
}
|
}
|
||||||
f, err := zglob.Glob(g)
|
f, err := zglob.Glob(g)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
continue
|
||||||
}
|
}
|
||||||
files = append(files, f...)
|
files = append(files, f...)
|
||||||
}
|
}
|
||||||
|
1
testdata/checksum/Taskfile.yml
vendored
1
testdata/checksum/Taskfile.yml
vendored
@ -2,6 +2,7 @@ build:
|
|||||||
cmds:
|
cmds:
|
||||||
- cp ./source.txt ./generated.txt
|
- cp ./source.txt ./generated.txt
|
||||||
sources:
|
sources:
|
||||||
|
- ./**/glob-with-inexistent-file.txt
|
||||||
- ./source.txt
|
- ./source.txt
|
||||||
generates:
|
generates:
|
||||||
- ./generated.txt
|
- ./generated.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user