mirror of
https://github.com/go-task/task.git
synced 2026-06-11 09:51:50 +00:00
fix: adjust run: when_changed to work correctly with imported tasks (#2511)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user