Skip to content

Commit

Permalink
Set --project-dir as working directory.
Browse files Browse the repository at this point in the history
dbt creates `dbt_packages` in the working directory rather than in `--project-dir`.
This ensure that it creates it in the right place.
  • Loading branch information
elongl committed May 22, 2024
1 parent 2e0a0a6 commit 71765ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elementary/clients/dbt/dbt_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def _run_command(
check=self.raise_on_failure,
capture_output=(capture_output or quiet),
env=self._get_command_env(),
cwd=self.project_dir,
)
except subprocess.CalledProcessError as err:
logs = list(parse_dbt_output(err.output.decode())) if err.output else []
Expand Down

0 comments on commit 71765ac

Please sign in to comment.