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

feat(remote): global tempDir when the path is absolute #1661

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

vmaerten
Copy link
Collaborator

@vmaerten vmaerten commented May 16, 2024

This PR allow to have a global temp directory when using remote taskfile.

Considering a setup with multiple different projects, all using the same remote taskfile. if / when the remote taskfile changes, we need to approve the prompt for all projects.
At the beginning, I thought changing the TASK_X_TEMP_DIR to ~/.task, but I've seen that it's suffixed with the dir so I won't work.

The fingerprint dir should stay scoped

This PR changes the behavior only for remote. If the path is absolute or start with ~ then we do not suffix it.

For the implementation, I've chosen to create a struct and store the two paths in it. We could also in the future add an env variable like TASK_X_REMOTE_DIR. If you think it can be a nice addition, I can implement it in this PR

Any feedback on this feature are appreciated :)

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

Successfully merging this pull request may close these issues.

None yet

1 participant