Closed illia-yurtsiv-proxet closed 1 week ago
dbt_core v1.8.0 introduces dependency on dbt_common package which wasn't the thing prior to 1.8.x. In dbt_common, they introduce InvocationContext class. It's used in cli's preflight decorator that sets the context before any actual CLI operation:
dbt_core v1.8.0
dbt_common
InvocationContext
preflight
Then it's used in dbt_core's SecretContext which is necessary if you use something like:
dbt_core
SecretContext
This PR tries to import set_invocation_context and get_env from dbt_common and then set ENV VARs before actual profile rendering in Jinja.
set_invocation_context
get_env
@z3z1ma please, pay attention, that this PR is required to support DBT 1.8
Rationale:
dbt_core v1.8.0
introduces dependency ondbt_common
package which wasn't the thing prior to 1.8.x. Indbt_common
, they introduceInvocationContext
class. It's used in cli'spreflight
decorator that sets the context before any actual CLI operation:Then it's used in
dbt_core
'sSecretContext
which is necessary if you use something like:Changes:
This PR tries to import
set_invocation_context
andget_env
fromdbt_common
and then set ENV VARs before actual profile rendering in Jinja.