gurkankaymak / hocon

go implementation of lightbend's HOCON configuration library https://github.com/lightbend/config
MIT License
79 stars 17 forks source link

Parsing `include "filename"` does not meet one of the features of Lightbend's Configuration Library #43

Open ddebrecenijr opened 1 year ago

ddebrecenijr commented 1 year ago

Consider the example:

myconf.conf

simple-test {
  description = "Nothing will be included"
  include "lib/common"
}

lib/common.conf

common-value = 42

Doing a hocon.ParseResource("myconf.conf") results in an output of so:

{
  simple-test: {
    description: Nothing will be included
  }
}

It is not including lib/common.conf which breaks a feature of Lightbend's Configuration Library. "include with no file extension includes any of .conf, .json, .properties".