mirror of
https://github.com/go-task/task.git
synced 2025-01-22 05:10:17 +02:00
chore: add changelog entry for #1356
This commit is contained in:
parent
2f92f2ac5f
commit
222cd8c8f8
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
- Add ability to set `watch: true` in a task to automatically run it in watch
|
- Add ability to set `watch: true` in a task to automatically run it in watch
|
||||||
mode (#231, #1361 by @andreynering).
|
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,
|
- Fixed a nil pointer error when running a Taskfile with no contents (#1341,
|
||||||
#1342 by @pd93).
|
#1342 by @pd93).
|
||||||
- Added a new [exit code](https://taskfile.dev/api/#exit-codes) (107) for when a
|
- Added a new [exit code](https://taskfile.dev/api/#exit-codes) (107) for when a
|
||||||
|
2
watch.go
2
watch.go
@ -180,7 +180,7 @@ func shouldIgnoreFile(path string) bool {
|
|||||||
"/.task",
|
"/.task",
|
||||||
"/.git",
|
"/.git",
|
||||||
"/.hg",
|
"/.hg",
|
||||||
"/.node_modules",
|
"/node_modules",
|
||||||
}
|
}
|
||||||
for _, p := range ignorePaths {
|
for _, p := range ignorePaths {
|
||||||
if strings.Contains(path, fmt.Sprintf("%s/", p)) || strings.HasSuffix(path, p) {
|
if strings.Contains(path, fmt.Sprintf("%s/", p)) || strings.HasSuffix(path, p) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user