compat

command
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Command compat generates the mvm compatibility-matrix data.

It runs "mvm test <pkg>" for every bridged standard-library package (parsed from stdlib/gen.go) plus the curated external list (compat/external.txt), classifies each result into a tier (green/yellow/red/gray) with a tests-passing ratio, and writes three data files consumed by the mvm.sh/compat page: compat.json (the full latest matrix), history.jsonl (one appended summary line per run, for the trend chart) and badge.json (a shields.io endpoint badge). It also rewrites the compatibility summary block in README.md.

This is plain Go on purpose. Run it through mvm to dogfood the interpreter:

mvm run compat/gen.go -mvm ./mvm

or natively as a zero-risk fallback (the file is identical either way):

go run ./compat -mvm ./mvm

Inputs are read relative to -root (default "."), outputs written to -out (default "compat"). See README.md and docs/usage.md for the wider design.

Jump to

Keyboard shortcuts

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