Add just
recipe to update catalog .env
#2938
Labels
🤖 aspect: dx
Concerns developers' experience with the codebase
🧰 goal: internal improvement
Improvement that benefits maintainers, not users
help wanted
Open to participation from the community
🟩 priority: low
Low priority and doesn't need to be rushed
🧱 stack: catalog
Related to the catalog and Airflow DAGs
Problem
We have the
just env
recipe to create .env files from templates, but in the Catalog we often don't want to fully override our existing .env because we would lose API keys that are set as env variables. It would be nice to have a way to update yourcatalog/.env
to pull in any updates without overriding everything.Description
A
just catalog/env
recipe, or else an update to the existingjust env
, that copies in everything from theenv.template
but does not overwrite API keys.Alternatives
Alternatively we could have an entire section of the .env which is preserved, and move the API keys to this section. Something like:
We can add this to the
env.template
. Whenjust env
orjust catalog/env
is run, if nocatalog/.env
already exists, we copy the whole thing. If there's an existingcatalog/.env
, we copy over everything else but don't touch this section. It should be at the end of the file, allowing permanent settings to override values in other sections.Additional context
The text was updated successfully, but these errors were encountered: