Declared Dependencies and Resolved Versions
A dependency declaration may permit a range of versions. A resolution chooses a concrete version under the package manager's rules.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace changing choices
If a declaration permits any version from 2.1 up to 3.0 exclusive, a resolved build today might use 2.3 and a later one 2.4. The declared comparison boundaries are unchanged.
Record a concrete agreement
A project lockfile can record actual chosen versions and additional data. Confirm that the automated build consumes it in the intended mode. See dependency changes and locks.[1]
Separate permitted versions from chosen versions
A dependency declaration can allow any compatible release in an interval while one resolution selects a specific release. Both declarations can stay constant during a change to the resolved dependency tree. Test the artifact using the versions actually installed. See reading lockfile changes.
Declared: library A within allowed major series
First resolution: A at one allowed version
Later resolution: another allowed version
Locking can preserve the exact chosen graph for subsequent builds
Verify how the ecosystem interprets ranges
Version-family conventions and resolver behavior differ by tool. Identify direct constraints, selected versions and platform conditions from the actual build inputs. Include a clean install test with the intended lock policy.