question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve docs about environment variables overriding

See original GitHub issue

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:

   "Can't merge the key: '{key}' because it will override the previous value.",
                            "Only lists and dicts can be merged. The type obtained was: {type}",

https://github.com/ESSS/conda-devenv/blob/a0c0f7bc52a7e01cdb88bdeda39071c418f8b3da/conda_devenv/devenv.py#L219

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
edisongustavocommented, Aug 11, 2020

Maybe we should add a flag to merge those as “use the first value (possible from the root devenv file)”.

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.

1reaction
majidaldocommented, Aug 13, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overriding Configuration via Environment Variables
You can use environment variables to override the configuration values from the UiPath.Orchestrator.dll.config file's appSettings and connectionStrings ...
Read more >
Environment variables | dbt Developer Hub
To set environment variables at the project and environment level, click Deploy in the top left, then select Environments. Click Environments ...
Read more >
Override a Service Configuration in an Environment
In Override Type, select Variable Override. The Variable Override options appear. In Configuration Variable, select the variable from the ...
Read more >
Introduction to environment variables - CircleCI
Introduction to environment variables in CircleCI. ... will override environment variables declared with the environment and contexts keys.
Read more >
Set environment variables | Cloud Composer
Set environment variables for existing environments · In Google Cloud console, go to the Environments page. Go to Environments · In the list...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found