Skip to content

[FEATURE] Single source of truth for container tool versions #559

Closed

Description

@c-vigo

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), and README.md / docs/templates/README.md.j2 (documentation).
  • The Containerfile installs bare-releases/latest for gh, 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

  1. Add a declarative versions file (e.g. versions.json) listing each tool, its pinned version, and install source.
  2. Update the Containerfile to install pinned versions from that file instead of releases/latest.
  3. Generate or read EXPECTED_VERSIONS in tests/test_image.py from the same file.
  4. Render tool versions in README.md / docs/templates/README.md.j2 from the same file (via generate-docs or template substitution).
  5. 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
  • Containerfile installs 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-binstall pin exposed the duplication problem

Changelog Category: Changed

Activity

  1. added
    feature
    priority:medium
    area:image
    area:workflow
    effort:medium
    semver:minor
    on Jun 8, 2026
  2. self-assigned this
    on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:imagearea:workfloweffort:mediumfeaturepriority:mediumsemver:minor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions