Skip to content

Commit

Permalink
Merge pull request #183 from dbt-labs/176-clean-before-deps
Browse files Browse the repository at this point in the history
176 clean before deps
  • Loading branch information
nicholasyager authored Sep 30, 2023
2 parents 323d334 + a6b792f commit 6ef6305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ venv/
__pycache__/
# IDEs
.idea/
.vscode/

**/database.db
logs/
Expand Down
3 changes: 2 additions & 1 deletion dbt_meshify/dbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def invoke(
result = self.dbt_runner.invoke(runner_args if runner_args else [])
if not result.success and result.exception:
if isinstance(result.exception, UninstalledPackagesFoundError):
logger.debug("Project missing packages, running dbt deps...")
logger.debug("Project missing packages, running dbt clean and dbt deps...")
self.dbt_runner.invoke(["clean"])
self.dbt_runner.invoke(["deps"])
result = self.dbt_runner.invoke(runner_args if runner_args else [])

Expand Down

0 comments on commit 6ef6305

Please sign in to comment.