[CT-2743] [Bug] dbt docs serve
does not respect new input method for target-path
#7953
Closed
2 tasks done
Labels
bug
Something isn't working
Is this a new bug in dbt-core?
Current Behavior
DBT 1.5 warns that
target-path
indbt_project.yml
is deprecated and should be replaced with--target-path
or$DBT_TARGET_PATH
.We removed
target-path
from ourdbt_project.yml
anddbt debug
reports all green:However, when we start the docs server it errors trying to read the target:
Putting
target-path
back resolves the issue, while returning the warning about deprecation:Interestingly,
dbt docs generate
does respect the new target path config, it's only when then serving said config that it breaks.Expected Behavior
The
dbt docs serve
command should respond to--target-path
and respect$DBT_TARGET_PATH
, starting without error if an alternate target path was used to generate.Steps To Reproduce
target-path: my_target_dir
fromdbt_project.yml
export DBT_TARGET_PATH=my_target_dir
dbt docs generate
(Catalog written to my_target_dir/catalog.json
)dbt docs serve
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
Possibly related to #7418
The text was updated successfully, but these errors were encountered: