dbt clean does not respect the project-dir if provided #2840
Labels
bug
Something isn't working
good_first_issue
Straightforward + self-contained changes, good for new contributors!
Describe the bug
If I am not in the project directory and run
dbt clean --project-dir <path>
. DBT won't clean the directories starting from the project directory. It cleans it from the current directory.Steps To Reproduce
go out of the project directory and pass the path to directory to the
--project-dir
flag.Expected behavior
I expect dbt to clean the directories recursively defined in
clean-targets
ofdbt_project.yml
.System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using: macOS 10.15.6
The output of
python --version
: Python 3.7.2The text was updated successfully, but these errors were encountered: