bazel-aquery-differ
This is a port of
https://github.com/bazelbuild/bazel/blob/master/tools/aquery_differ/aquery_differ.py
to golang.
Usage
aquerydiff --before <BEFORE_FILE> --after <AFTER_FILE> --report_dir <REPORT_DIR>
You can generate the <BEFORE_FILE>
(and <AFTER_FILE>
) using:
bazel aquery //pkg:target-name --output jsonproto > before.json
bazel aquery //pkg:target-name --output textproto > before.text.pb
bazel aquery //pkg:target-name --output proto > before.pb
The file extensions are relevant; the proto decoder will be protojson
if
.json
, prototext
if .text.pb
and proto
otherwise.
An HTML report and accessory files will be written to the given --report_dir
that will look something like: