Skip to content
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

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

Open
1 task
fjmacagno opened this issue Dec 2, 2024 · 0 comments
Open
1 task
Labels
area:config Related to configuration, like YAML files, environment variables, or executer configuration enhancement New feature or request triage-needed Items need to be reviewed / assigned to milestone

Comments

@fjmacagno
Copy link

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!
@fjmacagno fjmacagno added enhancement New feature or request triage-needed Items need to be reviewed / assigned to milestone labels Dec 2, 2024
@dosubot dosubot bot added the area:config Related to configuration, like YAML files, environment variables, or executer configuration label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:config Related to configuration, like YAML files, environment variables, or executer configuration enhancement New feature or request triage-needed Items need to be reviewed / assigned to milestone
Projects
None yet
Development

No branches or pull requests

1 participant