burton_dewilde
11/06/2023, 10:20 PM.meltano/transformers/dbt/target/
) is outside the dbt project directory (transformer/
). As a result, any run gives an error:
2023-11-06T18:57:57.133172Z [info ] Environment 'dev' is active
Extension executing `dbt clean`...
18:57:58 Running with dbt=1.7.0
18:57:58 Encountered an error:
Runtime Error
dbt will not clean the following directories outside the project: ['.meltano/transformers/dbt/target']
This is similar to but (afaict) not the same as this open issue from last year.
Just wondering if anyone else has had this issue and/or if meltano folks have specific recommendations about how to handle this change in dbt's functionality. Poking around dbt's code suggests that there may be a straightforward workaround -- adding a new envvar / cli flag -- but maybe there's a better or less clunky way to address this. Thanks in advance for your help!edgar_ramirez_mondragon
11/07/2023, 12:37 AMdbt_project.yml
to point to the dbt project root:
target-path: "target"
clean-targets:
- "target"
- "dbt_packages"
Perhaps it's worth updating the default in the meltano extension: https://github.com/meltano/dbt-ext/blob/e445807dee6326ae8509a9c8239a489000797a0b/files_dbt_ext/bundle/transform/dbt_project.yml#L18-L24edgar_ramirez_mondragon
11/07/2023, 12:39 AMburton_dewilde
11/07/2023, 2:25 PMtarget-path
in dbt_project.yml
is deprecated: https://docs.getdbt.com/reference/project-configs/target-path#configuration
is there another, more future-proof approach?burton_dewilde
11/07/2023, 10:10 PMDBT_CLEAN_PROJECT_FILES_ONLY: false
in my env (via docker compose file), which lives hereedgar_ramirez_mondragon
11/08/2023, 12:16 AM