-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Regression] Jinja templating not working in dependencies.yml #11109
Comments
Hey @H-Max ! I see what you are saying about Jinja templating not being supported in The solution for your case:
Relevant documentationWe have this documented here, but it is easy to miss: Next stepsWe intentionally chose for Rather, you can keep any dbt packages that need Jinja rendering within your |
Thanks Doug for the heads up to the documentation. I did miss it. I really thought I read somewhere that it was a good practice to move everything to dependencies.yml, and I wonder if there wasn't a time when there was a warning about packages.yml depreciation, but I am may be wrong about that. Thanks again for the quick reply on the issue ! |
You have a good memory @H-Max 🧠 Our original guidance was to move everything to |
I knew it ! I'm not mad ! :D Well, as long as you don't plan on removing jinja / env_var support in |
Is this a regression in a recent version of dbt-core?
Current Behavior
packages.yml
file supports jinja templating, at least to read environment variables withenv_var()
.For instance:
This does not work anymore when renaming the file to
dependencies.yml
and this will be an issue in the future.We use this to pull private dbt packages from gitlab repositories using a syntax like that:
Expected/Previous Behavior
Jinja templating should be re-enabled in the file dependencies.yml
Steps To Reproduce
Simply add jinja templating trying to read an existing (or not) environment variable in dependencies.yml and you'll get a syntax error.
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
bigquery
Additional Context
No response
The text was updated successfully, but these errors were encountered: