Repository navigation
Closed
Labels
area:imageContainer image, Dockerfile, buildarea:workflowDeveloper workflow, commands, rules, skillseffort:medium1-4 hoursfeatureNew feature or requestpriority:mediumImportant but not urgentsemver:minorNew feature, backward-compatible
Description
Description
Introduce a single declarative file (e.g. versions.json or a [tools] table) as the source of truth for tool versions installed in the devcontainer image. Today, the Containerfile installs many tools from releases/latest while tests/test_image.py maintains separate EXPECTED_VERSIONS pins as a deliberate version-approval gate. When upstream releases drift, CI breaks and a human must manually bump the test pin and CHANGELOG — as seen in #557.
A centralized versions file would let the Containerfile, tests, and documentation all read from one place, and Renovate could manage bumps as reviewable PRs (the real human-approval moment) instead of post-hoc breakage.
Problem Statement
- Tool versions are duplicated across
Containerfile(install logic),tests/test_image.py(EXPECTED_VERSIONS), andREADME.md/docs/templates/README.md.j2(documentation). - The
Containerfileinstalls bare-releases/latestforgh,just,taplo,cargo-binstall,typstyle, etc., so builds are not reproducible and version drift is discovered only after CI fails. - README already embeds stale versions (e.g. "Python 3.12" while the image ships 3.14.5).
Proposed Solution
- Add a declarative versions file (e.g.
versions.json) listing each tool, its pinned version, and install source. - Update the
Containerfileto install pinned versions from that file instead ofreleases/latest. - Generate or read
EXPECTED_VERSIONSintests/test_image.pyfrom the same file. - Render tool versions in
README.md/docs/templates/README.md.j2from the same file (viagenerate-docsor template substitution). - Configure Renovate (custom manager or github-releases datasource) to bump versions in the file, producing reviewable PRs that update install, tests, and docs together.
Acceptance Criteria
- One versions file is the single source of truth for tool versions
-
Containerfileinstalls pinned versions from the file (reproducible builds) - Image tests read expected versions from the same file
- README / generated docs reflect versions from the same file
- Renovate proposes version bumps as PRs that update all consumers atomically
- TDD compliance (see
.cursor/rules/tdd.mdc)
Related Issues
- #557 — stale
cargo-binstallpin exposed the duplication problem
Changelog Category: Changed
Metadata
Metadata
Assignees
Labels
area:imageContainer image, Dockerfile, buildarea:workflowDeveloper workflow, commands, rules, skillseffort:medium1-4 hoursfeatureNew feature or requestpriority:mediumImportant but not urgentsemver:minorNew feature, backward-compatible
Activity
test(image): bump expected cargo-binstall to 1.20 (#560)