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

オープン
#9,259 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, github-actions, rust

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
5.5k
フォーク
869
平均マージ
8時間 2分
マージ済み PR(30日)
862

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/opendal のほかの issue

apache/opendal の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。