You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
Using dbt-core 1.3.1, dbt commands are using the wrong profiles.yml file, despite being told which file to use by the DBT_PROFILES_DIR env variable. It will try to use a profiles.yml file that exists in the current working directory instead.
Expected Behavior
dbt commands should use the profiles.yml located at the DBT_PROFILES_DIR directory when the environment variable is set; instead, it attempts to use the localprofiles.yml file.
Steps To Reproduce
I have defined the environment variable DBT_PROFILES_DIR=/Users/my_username/.dbt/
When I run dbt debug --config-dir, I get the following
16:04:00 Running with dbt=1.3.1
16:04:00 To view your profiles.yml file, run:
open /Users/my_username/.dbt
However, when I execute any dbt run command from a directory where another profiles.yml file exists, it attempts to use the local profile instead.
Relevant log output
No response
Environment
- OS:MacOS 12.6
- Python: 3.9
- dbt: 1.3.1
Which database adapter are you using with dbt?
redshift
Additional Context
No response
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
[Bug] DBT uses wrong PROFILES_DIR, even if DBT_PROFILES_DIR env variable is set.
[CT-1653] [Bug] DBT uses wrong PROFILES_DIR, even if DBT_PROFILES_DIR env variable is set.
Dec 13, 2022
@codycrossley Thanks for opening — I haven't been able to reproduce this locally:
$ DBT_PROFILES_DIR=/something/else dbt debug --config-dir
16:46:49 Running with dbt=1.3.1
16:46:49 To view your profiles.yml file, run:
open /something/else
Are you sure you're setting the env var correctly? What do you see if you run this in the same environment?
Is this a new bug in dbt-core?
Current Behavior
Using dbt-core 1.3.1,
dbt
commands are using the wrongprofiles.yml
file, despite being told which file to use by theDBT_PROFILES_DIR
env variable. It will try to use aprofiles.yml
file that exists in the current working directory instead.Expected Behavior
dbt
commands should use theprofiles.yml
located at theDBT_PROFILES_DIR
directory when the environment variable is set; instead, it attempts to use the localprofiles.yml
file.Steps To Reproduce
I have defined the environment variable
DBT_PROFILES_DIR=/Users/my_username/.dbt/
When I run
dbt debug --config-dir
, I get the followingHowever, when I execute any
dbt run
command from a directory where anotherprofiles.yml
file exists, it attempts to use the local profile instead.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: