Skip to content
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

Version 0.3.60 breaks setting default arguments in some cases #303

Open
alex-gorin opened this issue Feb 15, 2023 · 0 comments
Open

Version 0.3.60 breaks setting default arguments in some cases #303

alex-gorin opened this issue Feb 15, 2023 · 0 comments

Comments

@alex-gorin
Copy link

To reproduce, create the following files in the same directory:
base.conf:

root: {
    nested_key: {
        var1: "var1_default"
        var1: ${?VAR1}

        var2: some_value
    }
}

test.conf:

include "base.conf"
root.nested_key.var2 = "another_value"

Run the command:
cat test.conf | pyhocon -f json

Result for version 0.3.59 (expected):

{
  "root": {
    "nested_key": {
      "var1": "var1_default",
      "var2": "another_value"
    }
  }
}

Result for version 0.3.60 - not considering default value for var1 field:

{
  "root": {
    "nested_key": {
      "var1": null,
      "var2": "another_value"
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant