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

`match` hook block merge functionality broken - copying of `hook_call` #184

Open robcxyz opened 10 months ago

robcxyz commented 10 months ago

Per title, the test test_hook_match_case_block_merge is broken because for some reason hook_call is losing it's reference when passed through the match hook. Issue looks like the reference is lost when we reparse the block which gets a new hook_call object at:

        block_hook_input = HookCallInput(**val)

In the match hook. Noting this here as this is a mind fuck and don't have time for this wormhole now.

Best way to track this issue is by calling id(hook_call) as it passes through the logic -> ie it is different in the parser vs the hook itself.