Skip to main content

Module staleness

Module staleness 

Source
Expand description

Resolve the staleness-reference sha per the configured policy. No network — live-origin reads the last-fetched upstream tracking ref. Returns None when the reference can’t be determined (“stale-unknown”), in which case sha-staleness is simply not evaluated.

Functions§

resolve
The staleness-reference sha per policy (“none” | “local-head” | anything else = live-origin). offline forces the cached reference (results/origin-sha) and never resolves fresh.