mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
v3: Disallow the "expansions" setting on Taskfiles in v3
This commit is contained in:
3
task.go
3
task.go
@@ -177,6 +177,9 @@ func (e *Executor) Setup() error {
|
||||
if v < 2.2 && len(e.Taskfile.Includes) > 0 {
|
||||
return fmt.Errorf(`task: Including Taskfiles is only available starting on Taskfile version v2.2`)
|
||||
}
|
||||
if v >= 3.0 && e.Taskfile.Expansions > 2 {
|
||||
return fmt.Errorf(`task: The "expansions" setting is not available anymore on v3.0`)
|
||||
}
|
||||
|
||||
if e.OutputStyle != "" {
|
||||
e.Taskfile.Output = e.OutputStyle
|
||||
|
Reference in New Issue
Block a user