Skip to content
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

Dcv 2805 env var jinja template call isnt working in sources yaml for dbt core interface #11

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/dbt_core_interface/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,11 @@ def parse_project(self, init: bool = False) -> None:
# has acquired the lock, TODO: Lets implement a debounce-like buffer here
with self.parsing_mutex:
if init:
if (__dbt_major_version__, __dbt_minor_version__) >= (1, 8):
from dbt_common.clients.system import get_env
from dbt_common.context import set_invocation_context
set_invocation_context(get_env())

set_from_args(self.base_config, self.base_config)
# We can think of `RuntimeConfig` as a dbt-core "context" object
# where a `Project` meets a `Profile` and is a superset of them both
Expand Down