-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update cloud-cli-installation.md #6799
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
hey @jeremyyeo ! thanks for opening this up. how does the below sound so there's more context: The dbt Cloud CLI doesn't currently support relative paths in the For example, trying to reference the # repository_root/my_dbt_project_in_a_subdirectory/packages.yml
packages:
- local: ../shared_macros In this example,
To work around this limitation:
|
|
||
To work around this limitation: | ||
- Use the [dbt Cloud IDE](/docs/cloud/dbt-cloud-ide/develop-in-the-cloud), which supports relative paths for this use case. | ||
- If using a monorepo with multiple projects as subdirectories, use [private packages](/docs/build/packages#private-packages) or the [git clone method](/docs/build/packages#ssh-key-method-command-line-only) to share package across projects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test if private packages works with dbt Cloud CLI? Not sure at the top of my head :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i didn't but i was having a chat with Lucas Silbernagel about this and that's here i got it from. should i juts remove that bullet and just let users know to use the ide??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok @jeremyyeo , changed it to this:
The dbt Cloud CLI doesn't currently support relative paths in the packages.yml
file.
For example, trying to install a local package (shared_macros
directory) in your packages.yml
file won't work:
# repository_root/my_dbt_project_in_a_subdirectory/packages.yml
packages:
- local: ../shared_macros
In this example, ../shared_macros
is a relative path that tells dbt to look for:
..
— Go one directory up (to repository_root)./shared_macros
— Find theshared_macros
folder in the root directory.
To work around this limitation, use the dbt Cloud IDE, which supports relative paths for this use case.
hey @jeremyyeo , ok how's this looking now: |
confirmed by Jeremy! |
What are you changing in this pull request and why?
Making users aware of limitation https://dbt-labs.slack.com/archives/C019QLR6EJE/p1721233164421329
Checklist
🚀 Deployment available! Here are the direct links to the updated files: