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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user