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

fix: inconsistent current directory resolution depending on include order (#1757)

This commit is contained in:
Paulo Bittencourt
2024-10-05 20:40:22 -04:00
committed by GitHub
parent c5eea294aa
commit a72e70b026
6 changed files with 137 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
version: '3'
includes:
third-with-dir-1:
taskfile: "{{.INCLUDE_ROOT}}/child-taskfile3.yml"
dir: ./dir-1
third-with-dir-2:
taskfile: "{{.INCLUDE_ROOT}}/child-taskfile3.yml"
dir: ./dir-2

View File

@@ -0,0 +1,4 @@
version: '3'
tasks:
default: "true"

View File

@@ -0,0 +1,8 @@
version: '3'
includes:
second-no-dir:
taskfile: "{{.INCLUDE_ROOT}}/child-taskfile2.yml"
second-with-dir-1:
taskfile: "{{.INCLUDE_ROOT}}/child-taskfile2.yml"
dir: ./dir-1

View File

@@ -0,0 +1,8 @@
version: '3'
includes:
second-with-dir-1:
taskfile: "{{.INCLUDE_ROOT}}/child-taskfile2.yml"
dir: ./dir-1
second-no-dir:
taskfile: "{{.INCLUDE_ROOT}}/child-taskfile2.yml"