Skip to content

[Feature] Add way to add models path to ProjectConfig in addition to relative path #1357

Description

@fjmacagno

Description

Could ProjectConfig.models_relative_path be changed to take a list of paths? Or, a new parameter "extra_model_paths" be added?

Use case/motivation

I have a directory of source definitions which i use across many dbt projects. The folder structure is
root

  • sources
  • project_1
  • project_2
  • ...

Outside of cosmos i have model-paths: ["models", "../dbt_sources"] in my project file to support this, but since cosmos moves the project to a tmp directory and only takes a single string for the relative model paths, i cannot include the sources automatically, and will need to copy them into each project individually in order to use Cosmos.

Related issues

No response

Are you willing to submit a PR?

  • Yes, I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:configRelated to configuration, like YAML files, environment variables, or executer configurationcosmosenhancementNew feature or requestgood first issueGood for newcomerstriage-neededItems need to be reviewed / assigned to milestone

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions