bazel-aquery-differ

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2022 License: Apache-2.0

README

CI

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:

image

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL