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

Abierto
#9,259 2 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
docker, github-actions, rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
5.5k
Forks
869
Merge medio
8 h 2 min
PR fusionados (30 d)
862

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/opendal

Todos los issues de apache/opendal

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.