Feed diff multiline input for better resolution (#76)
Feed diff multiline input for better resolution (#76)

When the "jsonnet_to_json_test" rule's action runs to compare
Jsonnet's evaluation output to a canonical golden file, it collects
these two output sources into shell variables, then feeds them to the
"diff" command via input redirection with "echo." However, by
supplying "echo" with unquoted variable references, the shell folds
all the newlines together into single spaces, so that "diff" winds up
operating on just one line from each input source. When the content
differs, the best "diff" can do is report that that single line was
changed.

Instead, by quoting these variable references, "echo" receives and
emits multiline content, and "diff" can then report more granular
differences at the line level as intended.
bazelbuild/rules_jsonnet,bazelbuild/rules_jsonnet