geofffranks / spruce

A BOSH template merge tool
MIT License
431 stars 78 forks source link

move (( empty )) into merge time #288

Closed thomasmitchell closed 3 years ago

thomasmitchell commented 5 years ago

The following breaks, but it might make more sense for inject to just inject an empty map. Instead, it tries to inject the string (( empty map )), and then it dies. (( empty ... )) should probably be moved into a phase where (( inject ... )) can see it as a dependency and hold off until the map becomes an actual empty map.

---
meta:
  foo:
    beep: boop

---
stuff:
  name: geoff
  .: (( inject meta.foo ))

---
meta:
  foo: (( empty map ))
geofffranks commented 3 years ago

closing as stale