Skip to content

Support included_packages config, as an alternative to excluded_packages #172

Closed

Description

@El-Carverino

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.

Activity

  1. added
    enhancement
    triage
    on Apr 7, 2026
  2. adrienneyager commented on May 11, 2026

    @adrienneyager
    Owner

    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!

  3. removed
    triage
    on May 11, 2026
  4. added a commit that references this issue on May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions