-
Notifications
You must be signed in to change notification settings - Fork 228
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
Follow the XDG Base Directory spec for local pipelines' data #2319
Comments
Hey @goosethedev, would you like to provide a PR for this? It should be only a couple of lines of codes and I can point you in the right direction. |
Yes, I'll prepare a PR. However, how would be best to handle cases where the
|
I would do option 2 |
implementation tip: there's already an env variable that will place DLT_DATA_DIR = "DLT_DATA_DIR"
"""Sets default directory where pipelines' data (working directories) will be stored""" my take would be to find how this is used and add a fallback with btw. what about other directories? https://specifications.freedesktop.org/basedir-spec/latest/ |
Feature description
When running a dlt pipeline on Linux, a directory gets created at
~/.dlt
. According to the XDG Base Directory specification, application specific data should be stored at$XDG_DATA_HOME/dlt
if the environment variable is set.Are you a dlt user?
Yes, I'm already a dlt user.
Use case
No response
Proposed solution
Check if the
$XDG_DATA_HOME
env var is set. If so, use that location to store the pipelines' data.An additional condition in the run_context.py file could be enough.
Related issues
No response
The text was updated successfully, but these errors were encountered: