Skip to content

Update docs/customization/excluding-packages-and-paths.md#534

Merged
b-per merged 1 commit into
dbt-labs:mainfrom
jwolf20:main
Jun 10, 2025
Merged

Update docs/customization/excluding-packages-and-paths.md#534
b-per merged 1 commit into
dbt-labs:mainfrom
jwolf20:main

Conversation

@jwolf20
Copy link
Copy Markdown
Contributor

@jwolf20 jwolf20 commented Apr 21, 2025

This is a:

  • bug fix PR with no breaking changes
  • new functionality

Link to Issue

Description & motivation

The example provided for excluding an entire models directory will fail on any project that is following best practices for project layout.

The inclusion of a leading "/" before "models" requires the models directory to be contained within a sub-directory below the location of dbt_project.yml file; under the best practices layout of a dbt project the models directory and the dbt_project.yml file reside on the same level. The regex uses relative paths from the location of the dbt_project.yml file.

I was trying to following the example to exclude a folder of legacy models, but the models kept appearing in the evaluation outputs. Eventually I realized that the leading "/" before "models" was causing the issue. I hope to prevent others from repeating my mistake.

Integration Test Screenshot

Checklist

  • I have verified that these changes work locally on the following warehouses (Note: it's okay if you do not have access to all warehouses, this helps us understand what has been covered)
    • BigQuery
    • Postgres
    • Redshift
    • Snowflake
    • Databricks
    • DuckDB
    • Trino/Starburst
  • I have updated the README.md (if applicable)
  • I have added tests & descriptions to my models (and macros if applicable)

@b-per b-per merged commit 99a684e into dbt-labs:main Jun 10, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants