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

@@ -20,5 +20,5 @@ func Name(t *ast.Task) (string, error) {
func Hash(t *ast.Task) (string, error) {
h, err := hashstructure.Hash(t, hashstructure.FormatV2, nil)
return fmt.Sprintf("%s:%d", t.Task, h), err
return fmt.Sprintf("%s:%s:%d", t.Location.Taskfile, t.LocalName(), h), err
}