1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

fix: adjust run: when_changed to work correctly with imported tasks (#2511)

This commit is contained in:
Timothy Rule
2025-11-22 21:17:13 +01:00
committed by GitHub
parent 799bc85498
commit 386dcbc1a0
7 changed files with 82 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ import (
// Task represents a task
type Task struct {
Task string
Task string `hash:"ignore"`
Cmds []*Cmd
Deps []*Dep
Label string
@@ -36,18 +36,18 @@ type Task struct {
Interactive bool
Internal bool
Method string
Prefix string
Prefix string `hash:"ignore"`
IgnoreError bool
Run string
Platforms []*Platform
Watch bool
Location *Location
// Populated during merging
Namespace string
Namespace string `hash:"ignore"`
IncludeVars *Vars
IncludedTaskfileVars *Vars
FullName string
FullName string `hash:"ignore"`
}
func (t *Task) Name() string {