'Redefine ENV variable inside a EDN file using aero
I'm trying to redefine a value of an env variable inside an EDN file in order to write some tests.
Basically, I have an EDN file (simplified here) like this:
{:foo #include #or [#env SOME_VAR "default.edn"]}
Here I am using https://github.com/juxt/aero in order to have these tag literals (#include, #or and #env)
Aero handles the #env thing using System/getenv, so I tried to use with-redefs to temporarily redefines it, but without success.
So, any tip here on how to do it?
Thanks in advance
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
