1
0
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:
Andrey Nering
2020-05-17 15:28:25 -03:00
parent 4b027722b1
commit 5a435b533e

View File

@@ -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