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

Clarified about where to create .dbt Folder #89

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

Conversation

TheCedarPrince
Copy link
Collaborator

Added some notes about where to create the .dbt folder. Didn't know the proper solution for Windows off the top of my noggin however. Also, does the .dbt folder have to live at root?

katy-sadowski
katy-sadowski previously approved these changes Oct 24, 2024
Copy link
Collaborator

@katy-sadowski katy-sadowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@katy-sadowski
Copy link
Collaborator

Regarding location of .dbt, it does not have to be at root. Maybe we could link out to this page for more info? https://docs.getdbt.com/docs/core/connect-data-platform/connection-profiles

@lawrenceadams
Copy link
Collaborator

lawrenceadams commented Oct 24, 2024

Regarding location of .dbt, it does not have to be at root. Maybe we could link out to this page for more info? https://docs.getdbt.com/docs/core/connect-data-platform/connection-profiles

I agree, I tend to leave the profiles.yml file in the root of the working directory - especially when using duckdb and not having a risk of leaking credentials -rather than at my $HOME/.dbt, and the docs hint to this

dbt will search the current working directory for the profiles.yml file and will default to the ~/.dbt/ directory if not found.

In fairness, this is unclear for a complete newcomer to dbt/dbt-synthea so I think is a good thing to add in.

@TheCedarPrince maybe it's worth modifying to say it can be in the root of the working directory, rather than in $HOME/.dbt? I'd argue the former is more straightforward

@TheCedarPrince
Copy link
Collaborator Author

Sure! I'll tweak the PR later today -- but what is the command to jump to root on Windows? dir ... somthing ?

@lawrenceadams
Copy link
Collaborator

lawrenceadams commented Oct 24, 2024

Good question - I think it is cd %HOMEPATH% - but refuse to do any development work on Windows without using WSL so I have not tested! 😆

@TheCedarPrince
Copy link
Collaborator Author

@lawrenceadams and @katy-sadowski , fixed up the language here.

Copy link
Collaborator

@katy-sadowski katy-sadowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should actually be more explicit about the options (or, just link out to the dbt docs for this): https://docs.getdbt.com/docs/core/connect-data-platform/connection-profiles#advanced-customizing-a-profile-directory

and either way, let's add .dbt and profiles.yml to .gitignore?

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.

3 participants