1
0
mirror of https://github.com/go-task/task.git synced 2025-01-04 03:48:02 +02:00

chore: add changelog entry for #1356

This commit is contained in:
Andrey Nering 2023-10-07 18:41:35 -03:00
parent 2f92f2ac5f
commit 222cd8c8f8
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@
- Add ability to set `watch: true` in a task to automatically run it in watch
mode (#231, #1361 by @andreynering).
- Fixed a bug on the watch mode where paths that contained `.git` (like
`.github`), for example, were also being ignored (#1356 by @butuzov).
- Fixed a nil pointer error when running a Taskfile with no contents (#1341,
#1342 by @pd93).
- Added a new [exit code](https://taskfile.dev/api/#exit-codes) (107) for when a

View File

@ -180,7 +180,7 @@ func shouldIgnoreFile(path string) bool {
"/.task",
"/.git",
"/.hg",
"/.node_modules",
"/node_modules",
}
for _, p := range ignorePaths {
if strings.Contains(path, fmt.Sprintf("%s/", p)) || strings.HasSuffix(path, p) {