lightbend / config

configuration library for JVM languages using HOCON files
https://lightbend.github.io/config/
6.16k stars 967 forks source link

include doesn't allow for fully specified files. #768

Open TwoClocks opened 2 years ago

TwoClocks commented 2 years ago

the following lines fails to load include required("env.hocon") with an exception about not being able to find env.hocon.conf or env.hocon.json etc.

Seems like it shouldn't imply an extension if one is provided?

if I change the file name to env.conf then both include required("env") and include required("env.conf") work. So the code is already looking for extensions, and knows not to look for env.conf.conf. Perhaps don't append .conf etc if any extension exists?