-
Notifications
You must be signed in to change notification settings - Fork 115
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
ConfigProvider#orElse does not replace value from default provider #1186
Comments
@dobrynya, why do you expect that the value of On the other hand, the environment variables from TestSystem seem to be ignored entirely, even if one tries to access them properly (with |
@przemek-pokrywka I consider that a HOCON file, system environment, JVM props are configuration sources with slightly different notations, dispite difference in syntax. So it's expected that one can completely overwrite properties of lower priority when values are specified in a source of higher priority.
|
@dobrynya your problem is that you use Typesafe/Lightbend Config library, as it is hardcoded to always use the real system environment variables from the I've proposed a PR that lets one increase the testability of Typesafe/Lightbend Config, but the maintainers decided that they will not merge it. If you want, you may try to persuade them that they change their minds. |
@dobrynya The mentioned PR: lightbend/config#797, I'd appreciate it if you backed it up. |
@dobrynya @przemek-pokrywka Maybe it's caused by this one: zio/zio#8604 |
I use zio-config-typesafe 4.0.0-RC16 and zio 2.0.15
Expected the field b should be replaced by the environment variable and be equal List("Replaced value 1", "Replaced value 2"). Actually the value is not replaced when a hocun string contains a aproperty defined as an array.
The text was updated successfully, but these errors were encountered: