You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example above, if I'm anywhere in the test-1 directory, I would like to only install the packages defined in pkglist.txt and ./test-1/pkglist.txt
The problem now is that none of the tasks from test-2 are included:
$ cat test-1/.taskfiles/main.yml
---
version: "3"
tasks:
bar:
cmds:
- echo$PWD
$ task
task: [default] go-task --list-all
task: Available tasks for this project:
* default: List tasks
* foo:
* init:
Am I in the right direction, or is this not something that's possible and not designed to be done with go-task?
Please note that this is an oversimplified solution -- the goal is to have project specific taskfiles that share a collection of base tasks from the root.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to dynamically include taskfiles based on the project directory I'm in.
Let's say I have a directory structure as follows:
If I'm in the
test-1
directory I would like to have only themain.yml
taskfile from that directory included (and similarly for thetest-2
directory)I have a Taskfile as follows:
and the following package files:
$ cat pkglist.txt test $ cat test-1/pkglist.txt test-1 $ cat test-2/pkglist.txt test-2
In the example above, if I'm anywhere in the
test-1
directory, I would like to only install the packages defined inpkglist.txt
and./test-1/pkglist.txt
This part seems to work as expected:
The problem now is that none of the tasks from
test-2
are included:Am I in the right direction, or is this not something that's possible and not designed to be done with go-task?
Please note that this is an oversimplified solution -- the goal is to have project specific taskfiles that share a collection of base tasks from the root.
Beta Was this translation helpful? Give feedback.
All reactions