diffcheck

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command diffcheck is the toolkit's side of `./walle compare differential` (L.4): it runs the toolkit's List and cfndiff's FullDiff and Format on the cases toolkit-lib's driver runs, and writes what they report in the driver's form.

Run it from the repository root:

go run ./internal/tools/diffcheck inventory <assembly dir>... # the stacks the cases are made from
go run ./internal/tools/diffcheck < cases.json               # the toolkit's result for each case

inventory prints one JSON object, keyed by assembly directory: each stack, those in nested assemblies included, with its artifact ID, hierarchical ID, display name and template file, or the error loading the assembly.

Without arguments it reads a JSON array of cases on standard input and writes one JSON result per line, in the cases' order, as the driver in cmd/walle/internal/differential/js does; package differential describes both.

  • A selection case lists the assembly with the case's selector and gives the IDs List returns, in order, or the failing error's code, where toolkit-lib gives its error's name.
  • A diff case diffs two template files with cfndiff.FullDiff and gives the model, normalized, and the text cfndiff.Format writes, without colour, or cfndiff.FormatSecurity with the case's security option.

Both sides accept an assembly whose manifest still lists missing context, as actioncheck does, and the driver does with failOnMissingContext off. An error without a code, which toolkit-lib's errors all have, is named "(no code)".

Jump to

Keyboard shortcuts

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