[Bug] --state
flag is not being prioritized over $DBT_STATE
environment variable
#10413
Closed
2 tasks done
Is this a new bug in dbt-core?
Current Behavior
1.8.3
is not properly setting the--state
flag if $DBT_STATE has already been set. We ran into this issue when trying to rundbt ls --select result:success --state target --resource-type model
I added debugging to state.py to get hte following output. In both examples we have $DBT_STATE set.
dbt 1.7.14
dbt 1.8.3
Expected Behavior
--state
directory should be prioritized over the$DBT_STATE
environment variableSteps To Reproduce
./target
dbt build
commanddbt ls --select result:success --state target
state_path
variable that is set incontracts/state.py
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
Postgres --
v1.8.2
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: