-
Notifications
You must be signed in to change notification settings - Fork 967
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
resolveOptions are ignored when loading reference.conf files #164
Comments
In the general case this can't work for In general the reference conf cannot depend on the application or runtime conf because of this. It would be convenient sometimes but it just isn't how it works. However there may be various solutions, depending on your constraints (do you know that file path in advance? are you using any third-party libs that use typesafe config?) |
Thanks for the very quick answer. I completely understand the general case, and for public libraries, this is the way to go. For internal libraries though, one might want to not have to redefine private credentials (for a database or some other systems) on each developer machine. The use case would be to point to the config file where those credentials are located in the library, so wherever it is used, the correct credentials might be loaded. Here are my constraints:
|
If you're not worried about interop with other libraries, you could always do your own Other options:
|
Great suggestions! I am just starting to grasps the full power if the library. I ended up using your first suggestion, in order to be able to keep the usual application / reference fallbacks. Many thanks for your hard work a great support. |
This is preventing to load unresolved properties from libraries.
The problem lies in the following code:
resolveOptions
is not passed todefaultReference()
.Primary use case is to be able to use fallbacks for substitutions by doing something like:
This is working fine for
application.conf
files, but notreference.conf
ones.The text was updated successfully, but these errors were encountered: