Filtering Specific Package Installation in Non-Production Environments in dbt #1649
Unanswered
megetron3
asked this question in
Help and support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently working with dbt and have a specific requirement where I need to install a package, 'elementary-data/elementary', only in non-production environments. My current packages.yml file looks like this:
When I run
dbt deps
, it installs the 'elementary' package in all environments, which is not what I want. I tried using Jinja templating to conditionally include the 'elementary' package based on the target environment, but I learned that dbt does not support Jinja in the packages.yml file.Is there a way to filter out the 'elementary' package from the
dbt deps
command in production environments? Any guidance or suggestions would be greatly appreciated.Additionally, when the 'elementary' package is installed in the production environment, I receive the following warning:
This further emphasizes the need to prevent the installation of the 'elementary' package in production environments. I'm looking for a solution that allows me to filter out this package from the
dbt deps
command in production environments, while still allowing its installation in non-production environments."Beta Was this translation helpful? Give feedback.
All reactions