upstreammirror

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package upstreammirror checks that a checkout's Pi source mirror, .upstream/current, is the Pi build a ledger version names. Parity tests and the ledger generators read Pi's source from that mirror and trust it: a missing or stale mirror silently validates PiG against the wrong Pi (a 0.79.4 mirror hid that session_info_changed graduated in 0.80.3; an interface ledger update without the mirror reopens every row whose rule reads Pi's source).

Index

Constants

View Source
const Fix = "" /* 232-byte string literal not displayed */

Fix is the command that points .upstream/current at the pinned build.

Variables

This section is empty.

Functions

func Check

func Check(root, version string) error

Check returns nil when root/.upstream/current is the mirror of the Pi build version: its provenance marker (.pig-upstream-source.json, which automation/gen/mirror-upstream.sh writes only after a complete extraction) records version, and its coding-agent package.json reports version's package version (the part before a commit pin's +<commit>). For the pinned version (pigversion.UpstreamVersion) the marker must also record the pinned tag and commit, and package.json the pinned package version. The error names what the mirror holds and the fix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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