-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
"includes" path does not resolve {{.HOME}} variable #670
Comments
It looks like variables are not evaluated prior to finding includes. I think this is also by design in v3 in order to avoid confusing behavior. There aren't very well defined "rules" for how/when variables are evaluated. You may be able to try To be honest, it feels a bit weird to include a taskfile from your home directory... whats in that common taskfile? why isn't this checked into your source code repository? This might actually be a symptom of not allowing the use of remote includes. This has been asked for here: #556 #380 Let me know if I'm on the right track or not regarding the "root cause" of what you are trying to accomplish. |
Hi @piotrkardasz, I'd say that's not officially supported. Most of the time the Taskfiles you are going to import are all on your repository (in subdirectories). I don't have plans to address use cases like this. I hope you understand 🙂 |
Example Taskfile showing the issue
I would like to include Taskfile from the home folder but I am getting an error
When I put
taskfile: "/home/username/common/Taskfile.yml"
it working correctly it looks like a.HOME
and variables are not resolved in this caseThe text was updated successfully, but these errors were encountered: