Invoking task from parent directory's Taskfile.yml? #2248
-
Hello, Does Task not support walking up the directory tree to find the nearest parent Allow me to explain what I'm trying to achieve. Consider the following directory tree:
Wherein my root version: 3
includes:
api:
taskfile: api/Taskfile.yml
dir: api/
cdk:
taskfile: api/cdk/Taskfile.yml
dir: api/cdk/ From the root directory, I can successfully run my nested tasks, such as I have tried naming my included taskfiles as
with version: 3
includes:
api:
taskfile: api/Taskfile.incl.yml
dir: api/
cdk:
taskfile: api/cdk/Taskfile.incl.yml
dir: api/cdk/ I was hoping this approach would work but if I I understand that this is similar to how GNU Make does it, but is there a flag or configuration option I'm unaware of that would allow walking up the path to find the nearest Taskfile.yml? We are (unfortunately) converting our folks over from In my search for similar topics, I've found #289 (and #920), #939 and #903. I was under the impression that #920 solved it but that doesn't seem to be the case? Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nevermind- pebkac It works in a minimal repro case. I found I was also including the |
Beta Was this translation helpful? Give feedback.
Nevermind- pebkac
It works in a minimal repro case.
I found I was also including the
cdk
taskfile insideapp/Taskfile.incl.yml
. I removed that reference and it works as I was hoping!