Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/stackb/bazel-aquery-differ

Bazel aquery differ tool
https://github.com/stackb/bazel-aquery-differ

Last synced: 2 months ago
JSON representation

Bazel aquery differ tool

Lists

README

        

[![CI](https://github.com/stackb/bazel-aquery-differ/actions/workflows/ci.yaml/badge.svg)](https://github.com/stackb/bazel-aquery-differ/actions/workflows/ci.yaml)

# bazel-aquery-differ

This is a port of

to golang.

## Installation

Download and unzip a release artifact, or clone and `bazel build //cmd/aquerydiff`.

## Usage

```bash
aquerydiff --before --after --report_dir
```

You can generate the `` (and ``) using:

```bash
bazel aquery //pkg:target-name --output jsonproto > before.json
bazel aquery //pkg:target-name --output textproto > before.textproto
bazel aquery //pkg:target-name --output proto > before.pb
```

> The file extensions are relevant; the proto decoder will be `protojson` if
`.json`, `prototext` if `.textproto` and `proto` otherwise.

An HTML report and accessory files will be written to the given `--report_dir`,
which you could serve as follows:

```
(cd && python3 -m http.server 8000) &
```

> Report will look something like:

image