new feature: single source of truth for dev tool versions across CI and local recipes

Open
#9,259 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, github-actions, rust

Research direction

Start with the cited workflow, devcontainer, and justfile locations, then trace how each currently selects or installs tool versions. The issue proposes a shared checked-in version file, but leaves its format and integration across workflows, the devcontainer, and local recipes open; clarify how the existing pnpm 8 and 11.8.0 split should be represented. Done means the relevant CI and local paths use shared pins and report or install mismatched versions clearly.

Written by the indexing model from the issue text.

Description

enhancement

This issue was prepared with AI assistance (Claude Code, Claude Opus 5.5). The cited file:line references were checked against main at 8134d4508.

Feature Description

Keep one version for each developer tool (hawkeye, taplo, pnpm, …) in a single place. GitHub workflows, the devcontainer, and local just recipes would all read it, so a version bump is a single edit and CI and local runs use the same binaries.

Problem and Solution

Problem. Each workflow or setup file pins tool versions separately, and some files do not pin them at all. Local recipes do not check versions, so a contributor's local tool can drift from CI without any warning.

Observed: in bindings/python, just stub-gen runs just fmt (bindings/python/justfile:67), and fmt runs hawkeye format --config ../../licenserc.toml . (bindings/python/justfile:181). With a locally installed hawkeye 6.5.1 the recipe failed, while CI installs hawkeye 7.2.0. Neither the justfile nor bindings/python/CONTRIBUTING.md:17 states which hawkeye version is required.

Versions found:

Tool Location Version
hawkeye .github/workflows/ci_check.yml:110 7.2.0
hawkeye .github/workflows/ci_bindings_python.yml:99 7.2.0 (repeated)
hawkeye .devcontainer/Dockerfile:60 v7.2.0 (repeated, as a download URL)
hawkeye bindings/python/justfile:181,190, bindings/python/CONTRIBUTING.md:17 not pinned or checked
taplo .github/workflows/ci_check.yml:138, .github/workflows/ci_bindings_python.yml:94 taplo-cli, not pinned
taplo .devcontainer/Dockerfile:62 0.10.0
taplo bindings/python/justfile:183,192 not pinned or checked
pnpm .github/workflows/ci_check.yml:173, docs.yml:559, website_preview.yml:70, .devcontainer/Dockerfile:69, website/package.json:59 11.8.0
pnpm ci_bindings_nodejs.yml:74, test_behavior_binding_nodejs.yml:57,101, release_nodejs.yml:110,183, docs.yml:160 8
pnpm bindings/nodejs/package.json:116 [email protected]
ocamlformat .github/workflows/ci_bindings_ocaml.yml:76, .devcontainer/Dockerfile:74 not pinned (bindings/ocaml/.ocamlformat sets no version)

The pnpm split between 8 and 11.8.0 may be intentional for the Node.js binding. If it is, a shared pin for each binding would still stop the five copies of version: 8 from drifting apart.

Proposed direction (kept minimal). Store tool versions in one checked-in file that both CI and local recipes read, for example a small KEY=VERSION file or a [tools] table in an existing config:

  • Workflows read the version from that file (or from a composite action under .github/actions/ that reads it) and pass it to taiki-e/install-action, instead of hard-coding tool: [email protected].
  • The devcontainer reads the same file as a build argument.
  • just recipes that call these tools check hawkeye --version (and the other tools) against the pinned value, then fail with a clear message, or install the pinned version.

A version bump then touches one line, and local and CI runs share the same pinned binaries, which also lets the pinned binaries be cached.

Additional Context

Related but not a duplicate: #4933 (closed) proposed cargo xtask for development workflows in general. I did not find an existing issue or PR about tool version pinning.

Dominant language
Rust
Stars
5.5k
Forks
869
Avg merge
8h 2m
Merged PRs (30d)
862

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/opendal

All issues in apache/opendal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.