It is attempting to parse STDIN twice. STDIN is empty the second time, however, so it errs early.
~/go_workspace/src/github.com/geofffranks/spruce → echo '{"foo": "bar"}' | spruce -DT merge -
DEBUG> Processing file '-'
DEBUG> $.foo: not found upstream, adding it
DEBUG> $.foo: replacing with new data (new data is neither map nor array)
-----> Current data after processing 'STDIN':
-----> foo: bar
----->
DEBUG> Processing file '-'
Error reading STDIN: no data found. Did you forget to pipe data to STDIN, or specify yaml files to merge?
Funnily enough, it looks like this was introduced in the fix to #306 , where we got no STDIN. Now we get two.
It is attempting to parse STDIN twice. STDIN is empty the second time, however, so it errs early.
Funnily enough, it looks like this was introduced in the fix to #306 , where we got no STDIN. Now we get two.