Skip to content

Config Merge: Values After Booleans Ignored #4

@joshdmiller

Description

@joshdmiller

I don't have time to look into this right now, so I'm filing this to not forget it. If someone wants to take a crack, a high-quality PR would be awesome!


During config merging, any boolean values in nested objects cause all subsequent values to be ignored.

Example 1

warlock.json:

{
  "blah": {
    "one": true,
    "two": false,
    "three": "three"
  }
}

Will yield:

$ warlock --conf blah

blah = { one: true, two: false }

Example 2

Some spell's package.json:

{
  "warlock": {
    "blah": {
      "a": "a",
      "one": true,
      "two": false
    }
  }
}

Combined with warlock.json:

{
  "blah": {
    "three": "three"
  }
}

Will yield:

$ warlock --conf blah

blah = { "a": "a", one: true, two: false }

Not sure what's going on here...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions