sudoblockio / tackle

Tackle is a programmable configuration language for building modular utilities, code generators, and CLIs with schema validation baked in.
Apache License 2.0
52 stars 2 forks source link

Private block hooks don't work with merge #173

Open robcxyz opened 1 year ago

robcxyz commented 1 year ago

Per title, these don't work:

that_>:
  merge: true
  key: foo
  value: foo

that:
  _>: block
  merge: true
  items:
    key: foo
    value: foo
.../env/lib/python3.10/site-packages/tackle-0.5.1-py3.10.egg/tackle/utils/dicts.py", line 140, in nested_get
    return element[keys[0]]
KeyError: 'that'

But these public hooks do:

that->:
  merge: true
  key: foo
  value: foo

that:
  ->: block
  merge: true
  items:
    key: foo
    value: foo