-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Use xdg #11108
base: main
Are you sure you want to change the base?
Use xdg #11108
Conversation
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, please reach out through a comment on this PR. CLA has not been signed by users: @dradetsky |
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
Fun Fact: pre-commit didn't work for me locally; most things were fine, but flake8 broke with
Looking into this error, the flake8 team just replies "use the new version". The project uses 4.0.1, and flake8 is on 7.1.1. It might be time to upgrade. Additional Consideration: do we need to auto-migrate configs from ~/.dbt to ~/.config/dbt? |
@cla-bot check |
The cla-bot has been summoned, and re-checked this pull request! |
Whether this needs tests seems like something Product/DX can answer while they're approving it (or I guess rejecting it) so I'm ignoring that for the moment. |
@dradetsky re-assessing this as a feature request beginning here: #2515 (comment) |
Resolves #2515
Problem
We hardcode the profile dir to
~/.dbt
instead of using xdg.On a related note, there was a circular dep issue that caused us to have to copypaste
default_profiles_dir()
instead of just importing it (which is annoying if we want to add more complexity to it), so we have to fix that.Solution
Import & use appdirs.
Considerations
Per #2515, this has different effects on different platforms. I'm only thinking about it in terms of Linux, but maybe we don't want to use this on win/macos. Somebody else more familiar with those should comment.
Checklist