-
Notifications
You must be signed in to change notification settings - Fork 966
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
Substitution error when including? #306
Comments
All reference.conf files are resolved standalone, and then all application.conf are combined with the result and then the combination is resolved again. So reference.conf can't refer to application.conf, essentially. There's more discussion on #167 A possible workaround is to put an application.conf in your library along with the reference.conf, containing those things that should be processed as part of application.conf. |
I may have been unclear, I'm not including anything in
Edit: Should have clicked your link before commenting.. Will read that thread. Though if that's how things work, then the description text in the README probably needs to be updated, as it implies otherwise. |
what is the specific text that was misleading in the readme? I'll fix it up. |
Was just looking for that now, but it seems there was no one real bit, but rather a combination of how the standard behaviour and substitutions are described. Maybe some kind of note in the substitution part, highlighting the thread you linked, and/or the quirks of includes/substitutions would be cool. |
I have:
include
d in reference.conf (not into another key))In reference.foo.conf I have keys
application.server.protocol
,application.server.host
,application.server.port
, which are then referenced from the same file to build up email text inapplication.foo.email.body
using substitutions. This key is a multiline text field, with the substitutions using the 'unquoted string concat' method, eg.The substitutions work fine when i make the changes to the keys in
reference.foo.conf
, but if I try and override them inapplication.conf
, the email text still contains the original values fromreference.foo.conf
My understanding of how the overlays work, and how substitution happens after all overlays, I would have expected this to work properly.
Is this a bug in config, or am I just doing something wrong somewhere along the way?
Thanks!!
The text was updated successfully, but these errors were encountered: