1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

feat: taskfile special variable (#1523)

This commit is contained in:
Pete Davison
2024-03-03 16:45:23 -06:00
committed by GitHub
parent d30539c17e
commit aff1f5316d
4 changed files with 4 additions and 16 deletions

View File

@@ -40,7 +40,6 @@ type Task struct {
Run string
IncludeVars *Vars
IncludedTaskfileVars *Vars
IncludedTaskfile *Include
Platforms []*Platform
Location *Location
Watch bool
@@ -207,7 +206,6 @@ func (t *Task) DeepCopy() *Task {
Run: t.Run,
IncludeVars: t.IncludeVars.DeepCopy(),
IncludedTaskfileVars: t.IncludedTaskfileVars.DeepCopy(),
IncludedTaskfile: t.IncludedTaskfile.DeepCopy(),
Platforms: deepcopy.Slice(t.Platforms),
Location: t.Location.DeepCopy(),
Requires: t.Requires.DeepCopy(),

View File

@@ -136,7 +136,6 @@ func Read(
}
task.IncludeVars.Merge(include.Vars)
task.IncludedTaskfileVars = includedTaskfile.Vars
task.IncludedTaskfile = &include
}
}