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
USER_WORKING_DIR creates unexpected directory #1046
Comments
Hey @dvgitit, thanks for the repro. It really helped me track this down. What this boils down to: A task's This is the offending line of code: task/taskfile/read/taskfile.go Line 143 in c64f881
Basically, what's happening here is that when we provide However, since the task has not been compiled yet, it is not detecting the path as absolute and this means we're treating it as relative and joining Later, the task compiler converts this into the full path that you're seeing which makes no sense. As we're supposed to be supporting variables in a task's I've recently been working on a change that will completely overhaul this part of the codebase ( |
I'm currently using |
v3.21.0 (h1:pVGAGXxJ9Pk5mvjqv/CsdAD4ZIzNMjF+vrXMueM/WFk=)
Ubuntu 20.04.5 LTS
Symptoms
Unexpected directory created when using
dir: {{.USER_WORKING_DIR}}
in a task.Reproduce
use gist https://gist.github.com/dvgitit/7554e02c75815ac155b3ceb2c283996c
directory
../../config/home
is unexpected.The text was updated successfully, but these errors were encountered: