You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support included_packages config, as an alternative to excluded_packages #172
Is your feature request related to a problem? Please describe.
The main challenge is ease of maintaining a non-hierarchal dbt project mesh configuration, where multiple dbt projects can have bi-directional references to any/all other projects. In order to prevent confusion, every referenced manifest in dbt-loom has explicitly exclude all other packages potentially included by the other project(s).
Example: projects A, B, and C, which require prevalent use of the excluded_packages attribute.
A references the manifest of both B & C.
B references the manifests of both A & C.
Because A also includes B, B must be excluded here (self-exclusion).
C references the manifests of both A & B.
Because A also includes C, C must be excluded here (self-exclusion).
Because B also includes C, C must also be excluded there (another self-exclusion).
In addition because A also includes B, B must be excluded from the reference, so it doesn't conflict with the direct reference to B's manifest.
And this last point is actually true for all of them, so they must all contain exclusions for each other. This configuration & maintenance challenge grows exponentially as the number or projects increases (we currently have 5).
Describe the solution you'd like
For non-hierarchal dbt project mesh configuration, where we don't want a reference to one project's manifest to also include references to all it's referenced projects/manifests, an included_packages attribute would greatly simplify this. This would only explicitly import the listed package(s) from the manifest, regardless of how many are present or included in the manifest.json file.
In the example above, each project would have two manifests listed (as expected), with a single included_package for each, referencing the project which "owns" said manifest.
Describe alternatives you've considered
The best alternative we've attempted is a macro/templating system, where we just have to reinforce the exploding exclusions every time a new project or manifest is added, requiring updates to all related projects.
Hi @El-Carverino 👋🏻 I have a basic implementation of this include_packages approach set up in #176 . I'd love any and all feedback you can provide on this approach!
Activity
adrienneyager commentedon May 11, 2026
Hi @El-Carverino 👋🏻 I have a basic implementation of this
include_packagesapproach set up in #176 . I'd love any and all feedback you can provide on this approach!feat: Add a filter_models method