-
-
Notifications
You must be signed in to change notification settings - Fork 639
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
Temporary folder (.task) is not exposed as a special variable #1475
Comments
Hi @ssbarnea, there is no special variable for version: '3'
tasks:
default:
cmds:
- echo $TASK_TEMP_DIR
- echo {{.TASK_TEMP_DIR}}
Tested on v3.33.1
The folder is also created for me when I run this task. |
These behaviors are only true if I think the issue was created because these wanted behaviors aren't performed with an unset |
Hi, As @pd93 said, the only way to override the temporary folder is with the version: '3'
vars:
TASK_TEMP_DIR: '{{.TASK_TEMP_DIR | default ".task" }}'
tasks:
default:
cmds:
- echo {{.TASK_TEMP_DIR}} The folder is created no matter if |
Most people would probably hardcode the
.task
in their config files but the few that useTASK_TEMP_DIR
variable to customize it will have a problem as there is no special variable for the current value of the task temp directory.Another thing that I find weird is that I did not see taskfile creating this folder and I was expecting that it would be automatically created when absent.
The text was updated successfully, but these errors were encountered: