Describe the issue
Bug Description
The DbtCLI task in plugin-dbt 1.3.0 and 1.3.1 automatically injects --target-path target
into all dbt commands. This flag was removed in dbt-core 1.9, causing all DbtCLI tasks to fail
with the following error:
Error
Error: No such option: --target-path (Possible options: --log-path, --target)
Steps to Reproduce
- Use kestra/kestra:latest-lts (digest sha256:808b7bc5) which bundles plugin-dbt 1.3.1
- Install dbt-core >= 1.9 in the container
- Run any DbtCLI task
- The injected command looks like:
dbt deps --project-dir /app/dbt --log-format json --target-path target --log-path logs
Expected Behavior
--target-path should not be injected, or should only be injected for dbt-core < 1.9
Environment
- plugin-dbt: 1.3.1
- dbt-core: 1.10.20
- Kestra image: kestra/kestra:latest-lts (sha256:808b7bc5)
Workaround
Downgrade plugin-dbt to 1.2.3 in the Dockerfile by replacing the JAR manually.
Environment