Skip to content

Commit 5a435b5

Browse files
committed
v3: Disallow the "expansions" setting on Taskfiles in v3
1 parent 4b02772 commit 5a435b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

task.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ func (e *Executor) Setup() error {
177177
if v < 2.2 && len(e.Taskfile.Includes) > 0 {
178178
return fmt.Errorf(`task: Including Taskfiles is only available starting on Taskfile version v2.2`)
179179
}
180+
if v >= 3.0 && e.Taskfile.Expansions > 2 {
181+
return fmt.Errorf(`task: The "expansions" setting is not available anymore on v3.0`)
182+
}
180183

181184
if e.OutputStyle != "" {
182185
e.Taskfile.Output = e.OutputStyle

0 commit comments

Comments
 (0)