-
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
[Regression] dbt 1.3 reads profiles.yml in current directory before ~/.dbt directory #6066
Comments
@johnpkennedy Thanks for opening! There's been a lot of conversation leading up to this change, including the design considerations involved: #5411, #5425 I don't believe this is a
That said, I understand that this was a source of surprise for some folks. I think we should add a note about it to the "Breaking Changes" section of the v1.3 upgrade guide. |
We have the same setup (except for Redshift), and this change broke our workflow the same way. I understand it is not a regression because it is documented, and looking at the previous discussions I see that lot of the points that I wanted to add (like this leading to people inevitably ending up with their password in git) were already mentioned. Just advice on working around it for people whose workflow it also broke: don't try to use |
The old way was working better for our case. It is indeed a breaking change that is not documented either. The v1.3 documentation still says that the default directory is Is there a way to provide |
Hi @jtcohen6 - Respectively, the v1.2 documentation clearly states that the default directory is https://docs.getdbt.com/docs/get-started/connection-profiles#related-documentation |
Sorry again to hear this one took you all by surprise. We anticipated this may affect a very small number of users. @mzayer-coveo It sounds like you have a file named It sounds like both @johnpkennedy and @wrborigin used that file to version-control a connection profile used in deployment, which is (hopefully) mostly a pass-through for environment variables. It should be just as easy to stick the profile in a folder and point there (via
This works for me locally:
We version our documentation, so that you're always reading docs correct for the version of dbt Core that you're using. Here's what you see when v1.3 is selected in the version dropdown up top: As opposed to the previous behavior, when v1.2 is selected: This change is called out in the changelog / release notes, and it's now also mentioned as a potentially breaking change for some users in the v1.3 upgrade guide: |
In our case, we were using |
Is this a regression in a recent version of dbt-core?
Current Behavior
I encountered the following error after upgrading from dbt-redshift 1.2.1 to 1.3
As it turns out, dbt 1.3 is using the configuration from the
profiles.yml
file in my current directory instead of theprofiles.yml
in my~/.dbt
directory.We keep a separate
profiles.yml
in our dbt project directory for our CI/CD deployment workflow. This deployment profile does not have theuser
andpass
properties set because we use environment variables.Expected/Previous Behavior
dbt 1.2.1 (and earlier) reads the
profiles.yml
located in the ~/.dbt/ directory first.Steps To Reproduce
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
redshift
Additional Context
No response
The text was updated successfully, but these errors were encountered: