From 5a435b533ee4bed322907d6443c40572ebcaae50 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sun, 17 May 2020 15:28:25 -0300 Subject: [PATCH] v3: Disallow the "expansions" setting on Taskfiles in v3 --- task.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/task.go b/task.go index 836fd027..b108ea06 100644 --- a/task.go +++ b/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