-
Notifications
You must be signed in to change notification settings - Fork 19
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
Improve docs about environment variables overriding #112
Comments
The error indicates that there are multiple definitions for that variable in different devenv files, not related to the exiting variables. Maybe we should add a flag to merge those as "use the first value (possible from the root devenv file)". environment:
{% if not is_included %}
DB_LOCATION: https://localhost/dev
{% endif %} We did opt for the "merge error" to avoid variables defined in some devenv file to be silently ignored. |
I would be opposed to doing that. You can easily end up in a situation where you don't know why an environment variable has a given value. And that will be long hours debugging something. |
Agreed, better to raise an error, we just need to update the docs I think. |
Yup. That's what I did. For data sciency work, I claim the following template is everything that you need.
This + exec-wrappers + ESSS/deps + invoke gives me everything that I need for a rather sophisticated and general data science setup...without having to go conda build. |
Awesome! I've changed the title of the issue to better reflect the doc change. Would you like to contribute that? |
Sure. Unfortunately my response will be delayed. If the condadevenv developers can respond faster, don't let my delay delay the change. |
in the docs:
"
Environment variables defined as a single string (like DB_LOCATION above) will overwrite an existing variable with the same name.
"
in code:
conda-devenv/conda_devenv/devenv.py
Line 219 in a0c0f7b
The text was updated successfully, but these errors were encountered: