Expand environment variables in configuration files#888
Expand environment variables in configuration files#888elamdf merged 1 commit intoucb-bar:masterfrom
Conversation
|
@daniellovell @elamdf I agree this is useful, but there could be some corner cases when |
|
if the variable doesn't exist in the environment, |
|
I realized the concern is more so on the debuggability, esp with other meta actions. As a clarification question, environmental variable substitute would be at the higher priority than any other subst targets, right? @elamdf @daniellovell |
|
that's a good point- perhaps we should be doing a check to make sure that env variables aren't overriding lazy yaml variables (or at least printing a warning or something) |
It is common to define paths to collateral files with environment variables, but currently if you include paths in your config/spec .yml file that use environment vars, you will get an error.
Consider the following example, I would like to add a new library to
vlsi.technology.extra_libraries:Spec.yml
If I attempt any operation using this library, I will get a ValueError because the envvars are not expanded
This PR fixes the issue, by expanding all envvars in yaml & json files that are loaded by Hammer
Related PRs / Issues
Type of change:
Impact:
Contributor Checklist:
masteras the base branch?poetry.lockfile if you updated the requirements inpyproject.toml?e2e/if this feature depends on updated plugins?