Versions, lockfiles, and reproducible builds

R-LOCK-V4-2medium

Resolve a caret range

Maintain the dry-run dependency-plan report for a document-export worker. It evaluates an authored stable-three-part caret policy resembling part of npm/Cargo behavior. Input provides candidates, requirements, reviewed lock entries and install/frozen mode. Output is a proposal only: no registry contact, installation or persisted lockfile changes. Go and C++ implement this reporting policy too; it is not Go module or vcpkg selection. Inputs use well-formed numeric triples with parts from 0 through 1000; prereleases, build suffixes and transitive graphs are outside this model.

What needs to change

Implement admits so each caret requirement resolves to the right release.

Reproduce

  1. Run the sample with go run: hyphen-rules ^4.5.0, then try the fixtures with 0.x and 0.0.x ranges.

Acceptance criteria

Your review marks · Saved in this browser. Test acceptance is tracked separately.

Notes

Version, parse, newer and newestAdmitted are supplied. admits receives the version written after ^ as floor.

Sign in to open this exercise

The ticket brief is public. Sign in to access the exercise. Paid exercises require Pro.

Sign in