-
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
Project dir argument not used when running debug #1733
Labels
bug
Something isn't working
Milestone
Comments
Thanks for the report @gobbledygook88! Your diagnosis sounds spot-on to me |
franloza
pushed a commit
to franloza/dbt
that referenced
this issue
Dec 8, 2019
franloza
pushed a commit
to franloza/dbt
that referenced
this issue
Dec 21, 2019
beckjake
added a commit
that referenced
this issue
Jan 10, 2020
Fix project dir argument when running debug (#1733)
Fixed in #1989 |
iknox-fa
pushed a commit
that referenced
this issue
Feb 8, 2022
automatic commit by git-black, original commits: c1b3690
sevkw
added a commit
to sevkw/docs.getdbt.com
that referenced
this issue
Feb 17, 2022
the dbt debug command was quite outdated, and after researching this issue dbt-labs/dbt-core#1733 I found the correct dbt debug should be dbt debug --project-dir=<path/to/project>
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When running
dbt debug --project-dir=<some directory>
in another directory to that of your dbt project, thedbt_project.yml
is not used.Steps To Reproduce
With an existing dbt project:
we get the following output:
Expected behavior
Would expect the output to be the following:
System information
Which database are you using dbt with?
The output of
dbt --version
:Also tried with version 0.14.1. and obtained the same behavior.
The operating system you're using:
Ubuntu 19.04
The output of
python --version
:Python 3.7.4
Additional context
After a brief debugging session, we found the
get_nearest_project_dir()
function indbt/core/dbt/task/base.py
. This function is called when runningdbt compile
anddbt run
, but notdbt debug
.Inspecting the parsed arguments shows the
project_dir
attribute is set correctly.When running
dbt debug
in the actual project directory, dbt is able to pick updbt_project.yml
correctly.The text was updated successfully, but these errors were encountered: