bazelbuild / rules_jsonnet

Jsonnet rules for Bazel
https://bazelbuild.github.io/rules_jsonnet/
Apache License 2.0
68 stars 73 forks source link

Unified diff output in jsonnet_to_json_test #161

Closed abentley-ssimwave closed 5 months ago

abentley-ssimwave commented 1 year ago

This is a small enhancement. I'd like jsonnet_to_json_test to support unified diff output. Because unified diffs include some lines of context, this would make some failures easier to interpret. I've found that unified diffs are generally preferred. For example, they're git's default output.

If --normal diffs were chosen on purpose for jsonnet_to_json_test, then some way to customize the diff command would be helpful. Otherwise, I suggest changing the default to --unified