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

[run-task] Support interpolating $TASK_WORKDIR in environment variables #630

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

Conversation

ahal
Copy link
Collaborator

@ahal ahal commented Jan 15, 2025

We currently hard code some environment variables that should be turned into absolute paths. But it would be great if we had the ability to do this for any environment variable.

My current use case is setting PIP_CACHE_DIR to an absolute path under the task's workdir. I could add it to the list of hard coded envs, but it would be better to do something like PIP_CACHE_DIR=$TASK_WORKDIR/.cache/pip and have run-task do the interpolation automatically.

@ahal ahal requested review from a team and gabrielBusta January 15, 2025 21:14
@ahal ahal marked this pull request as draft January 15, 2025 21:17
@ahal ahal force-pushed the ahal/push-xzlwzlwtypxp branch from 32c7d8b to ad1bfef Compare January 15, 2025 21:18
@ahal ahal self-assigned this Jan 15, 2025
@ahal ahal added the feature A feature request label Jan 15, 2025
@ahal ahal marked this pull request as ready for review January 16, 2025 15:23
@ahal ahal force-pushed the ahal/push-xzlwzlwtypxp branch from ad1bfef to 512b52c Compare January 17, 2025 19:01
@ahal ahal requested a review from Eijebong January 17, 2025 19:02
@ahal ahal force-pushed the ahal/push-xzlwzlwtypxp branch from 512b52c to 3dd4b3f Compare January 17, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants