Compare directories and zip/jar artifacts.
Artifact Diff helps to create reports in plain text, so a generic diff tool can highlight differences between two paths or archives.
Reports will be written in JSON, and YAML format.
Our use case was a migration of our build environment. We wanted to ensure that the new artifacts would be equivalent to the previous ones.
The latest release is available at https://github.com/gesellix/artifact-diff/releases/latest.
You may also install the Golang package like this:
go install github.com/gesellix/artifact-diff/cmd/artifact-diff@latest
Please ensure that the binary is executable and in your $PATH
.
artifact-diff -t <report directory> scan -s <path1> [-s pathN]
report directory
: The reports forpath1
and optionallypathN
will be written to the report directorypath1
: A directory or zip-compatible archive to be scannedpathN
(optional): Other directories or zip-compatible archives to be scanned
You can use artifact-diff -h
to see a complete list of options.
Artifact Diff will extract archives into your $TEMP
directory, so that archives inside archives
can be examined, too. Please ensure that your storage has enough space for the extracted data.
Temporary files will be removed automatically.
The example code from https://github.com/bitfield/tpg-tools helped to get started with Golang's filesystem abstraction.
Copyright (c) 2023 Tobias Gesellchen.
See the LICENSE file in the root directory.