Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/problem to put a variable in an include #1109

Closed
Antoine-Sevec opened this issue Apr 6, 2023 · 1 comment
Closed

Bug/problem to put a variable in an include #1109

Antoine-Sevec opened this issue Apr 6, 2023 · 1 comment

Comments

@Antoine-Sevec
Copy link

Hi !
I need help because I can't put the TASKFILE_DIR variable in my includes in v3.23.0 (ubuntu 22.10), here is my code:

---
version: "3"

includes:
  main: 
    taskfile: '{{.TASKFILE_DIR}}/test/Taskfile.yml'

Thanks for your help

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Apr 6, 2023
@pd93
Copy link
Member

pd93 commented May 10, 2024

This works as expected in the latest version.

Note that you need to start your path with ./ to make it relative:

version: "3"

includes:
  main:
    taskfile: './{{.TASKFILE_DIR}}/test/Taskfile.yml'

@pd93 pd93 closed this as completed May 10, 2024
@task-bot task-bot removed the state: needs triage Waiting to be triaged by a maintainer. label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants