-
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
[CT-2531] [Regression] v1.5.0 cannot run "dbt deps" in Dockerfile - "Error: Invalid value for '--profiles-dir': Path '/root/.dbt' does not exist." #7511
Comments
Thanks for a nice a write-up @AndrewLane ! I haven't fully researched this, but starting in 1.5, the Without digging deeper, I don't know why WorkaroundIn the meantime, here's a workaround you can use: RUN dbt deps --profiles-dir . Opting against |
After a little more digging, I found where this validation is happening: dbt-core/core/dbt/cli/params.py Line 292 in fd73066
There's at least four different ways we can choose to address this:
@jtcohen6 I'd be inclined to try out Option 2 since it would preserve the behavior of <=1.4 ubiquitously across commands. Alternatively, Option 4 would be appropriate if |
I was going to add a new issue but I think it's just as relevant here. On a first time setup of dbt I am receiving the same error message when calling
|
Quick thoughts:
I'm happy with Option 2: switch the parameter to |
Is this a new bug in dbt-core?
Current Behavior
If I am installing dbt v1.5.0 in a Dockerfile and then run
dbt deps
later, I get a strange failure:Expected Behavior
I should be able to use
dbt deps
in my Dockerfile as I have before.Steps To Reproduce
With the following 4 files in a directory:
dbt_project.yml
Dockerfile-1.4.2
Dockerfile-1.5.0
packages.yml
If I build my v1.4.2 image, it works:
However, a similar command with v1.5.0 fails.
Relevant log output
Environment
No response
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: