publishcheck

command
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 11 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 publishcheck is publish-check.yml's checker: "publishing must be deterministic". It reads a repository's v* tags and its releases (the JSON that gh api --paginate --slurp prints) and prints one line per violation of:

R1  every v* tag has a release: a published one, or a draft younger than 2 h (R3 flags a draft older than that);
    a release-candidate tag (vX.Y.Z-rcN) with no release at all is exempt
R2  published releases, release candidates excluded, were published in version order: by semver, published_at
    never goes down; each adjacent pair where a lower version came out after a higher one is reported
R3  no draft release, an rc draft included, is older than 2 h, measured from the draft's last upload (see
    draftTime)

go run ./scripts/publishcheck -repo <owner/name> -tags tags.json -releases releases.json [-now <RFC3339>]

Exit 0: no violation. Exit 1: violations, one per line on stdout. Exit 2: usage or an unreadable input.

Jump to

Keyboard shortcuts

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