-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-3391] [Regression] dbt clean fails with "directories outside the project" error #9089
Comments
Thank you for opening this issue! I think this may have been intentionally introduced by #8469. A workaround may be to run ❯ dbt clean --help
Usage: dbt clean [OPTIONS]
Delete all folders in the clean-targets list (usually the dbt_packages and
target directories.)
Options:
...
--clean-project-files-only / --no-clean-project-files-only
If disabled, dbt clean will delete all paths
specified in clean-paths, even if they're
outside the dbt project.
... |
Oh yes, that works!
|
Nice! We should probably add this to the 1.7 upgrade guide |
Per @MichelleArk's comment, closing this in favor of adding this to the upgrade guide: dbt-labs/docs.getdbt.com#4482 Thanks again @katieclaiborne 🏆 |
Is this a regression in a recent version of dbt-core?
Current Behavior
After upgrading to dbt-core v1.7.1,
dbt clean
fails with a runtime error. (See log output below.)Expected/Previous Behavior
In dbt-core v1.6.8,
dbt clean
executed smoothly, and I expected v1.7.1 to behave the same way.Steps To Reproduce
dbt
directory of a GitHub repository.DBT_PROJECT_DIR
environment variable to"dbt"
packages.yml
file (see example below).dbt deps
to install them.dbt clean
to generate the runtime error.Relevant log output
Environment
Which database adapter are you using with dbt?
bigquery
Additional Context
Our project uses the default
clean-targets
config.The text was updated successfully, but these errors were encountered: