You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.
Recall that substitution happens as a final step, after parsing. It should be done for the entire app's configuration, not for single files in isolation. Therefore, if an included file contains substitutions, they must be "fixed up" to be relative to the app's configuration root.
Maybe it's not 100% clear how this should be interpreted, but if we take these files:
main.conf:
include "included"
a = main
included.conf:
a = included
b = ${a}
And load main.conf, then Typesafe Config produces:
{
"a": "main",
"b": "main"
}
But hocon-rs 0.9.0:
{
"a": "main",
"b": "included"
}
hocon-rs sets b to main only if main.conf explicitly duplicates the assignment:
include "included"
a = main
b = ${a}
but that defeats the purpose of including files with default values.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Per https://github.com/lightbend/config/blob/main/HOCON.md#includes :
Maybe it's not 100% clear how this should be interpreted, but if we take these files:
main.conf
:included.conf
:And load
main.conf
, then Typesafe Config produces:But
hocon-rs
0.9.0:hocon-rs
setsb
tomain
only ifmain.conf
explicitly duplicates the assignment:but that defeats the purpose of including files with default values.
The text was updated successfully, but these errors were encountered: