T
Task2w ago
teco

Problems with include files

I'm working with 2 Taskfiles. The first one are for public task in the second exists internal tasks . In the first one i had this:
version: "3"

includes:
git:
taskfile: ./Taskfile.git.yml
version: "3"

includes:
git:
taskfile: ./Taskfile.git.yml
My second file contains this at this moment
version: "3"

tasks:
clone:
vars:
DIR: '{{ .DIR | default "/" }}'
WORKDIR: '{{ joinPath .USER_WORKING_DIR .DIR }}'
dir: "{{.WORKDIR }}"
cmds:
- pwd
version: "3"

tasks:
clone:
vars:
DIR: '{{ .DIR | default "/" }}'
WORKDIR: '{{ joinPath .USER_WORKING_DIR .DIR }}'
dir: "{{.WORKDIR }}"
cmds:
- pwd
My directory where i'm executing the task is this: /Users/fri/Projects/fri But when i execute the git:clone the pwd result is
fri@fris-MacBook-Pro fri % task git:clone
task: [git:clone] pwd
/Users/fri/Users/fri/Projects/fri
fri@fris-MacBook-Pro fri % task git:clone
task: [git:clone] pwd
/Users/fri/Users/fri/Projects/fri
The path /Users/fri is duplicated But if i change my first file to this configuration
version: "3"

includes:
git: ./Taskfile.git.yml
version: "3"

includes:
git: ./Taskfile.git.yml
This is the result
fri@fris-MacBook-Pro fri % task git:clone
task: [git:clone] pwd
/Users/fri/Projects/fri
fri@fris-MacBook-Pro fri % task git:clone
task: [git:clone] pwd
/Users/fri/Projects/fri
No description
1 Reply
teco
tecoOP2w ago
No description
Want results from more Discord servers?
Add your server