On this page

0251. MVS details: floors, bounds, offline lock check

Context

ADR-0239 chose Go-style minimal version selection but left open which requirers count once a selection rises past a release, how an unpublished, yanked or unknown-edition release is handled, and what offline builds check without the index.

Decision

A name's floor is the highest minimum required by any release the resolver reached, including releases a later floor superseded, as in Go. Pins and caret bounds are checked only from the selected graph; a violation is E1080 naming both requirer chains. Names reached only through superseded releases are not selected and never downloaded. At the floor, an unyanked release (or a yanked one the lock pins) is taken; otherwise the oldest unyanked release above it inside the floor requirement's bound; none is E1076. A selected release whose index edition this toolchain lacks is E1081, not skipped. pkg requirements of path, git and edition packages join the resolver roots; fetch re-selects and re-walks, reusing downloaded index files and verified trees.

Requirements stay canonical strings in Dependency::Index (1.2.3 or ^1.2.3). Offline and read-only builds read no index: they accept the locked version when every requirement admits it, else E0935. Plain git dependencies may use version (exact or caret) instead of tag: v<x.y.z> tags are their releases, they join this resolver keyed by URL, the lock keeps the exact-tag entry shape without pkg, and offline builds accept a locked tag the requirement admits.

Alternatives considered

Consequences

Selections can only rise when a requirement is raised; new releases never move them. A git or path package that requires a registry package costs one extra selection pass.