Embed the tool-versions data in the CLI and fall back to it
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 12/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- docker, typescript
- 領域
- build-system, cli, tooling
調査の方向性
This is design work spanning several parts: the bundled @containerbase/tool-versions package, the integrity chain (index.json, <tool>.json, <tool>.integrity.json), version resolution, and the install-tool command. Start by reading the open upstream dependency in containerbase/tool-versions#86 and the parent tracking issue #7673 before touching the CLI. Done means the fallback paths are tested with upstream lookups mocked to fail, and the generic prefix resolver behaves as described.
索引モデルが issue の本文から書いたものです。
説明
What would you like containerbase to do?
Embed the tool-versions release archive in the containerbase image, and let the CLI use it when the live lookups fail.
Proposal
- The image build downloads a pinned
tool-versions-<version>.tar.xzfrom the containerbase/tool-versions releases, verifies its.sha512and extracts it into the image. Renovate updates the pinned version like the prebuilds. - The pinned archive and its
.sha512are the trust anchor, verified at build time. A schema test validates every embedded file and its integrity chain in CI. - At runtime the CLI reads only the
v1/<tool>.json(andv1/<tool>/<version>.json) it needs, lazily and once per run, and checks just that file against the schema (well under a millisecond for most tools). No integrity chain and noindex.jsonread, to keep it fast. A missing, unreadable or invalid file behaves like no embedded data. - Version resolution falls back to the embedded versions when the upstream source can't be reached, and logs the fallback.
- The embedded versions feed one generic partial version resolver:
install-tool <tool> <prefix>(e.g.20,3.12) resolves to the newest release of that line, with the tool's versioning from the file. - The install uses the embedded
files(url and checksum) directly, instead of fetching checksum files or calling the Adoptium API, and keeps the current lookup for files that aren't listed. - git: with the embedded
git.json, check offline whether a prebuild exists and fall back for every missing version, without thereleases/latestrequest (after #7813). - Tests for the fallback paths with the upstream lookups mocked to fail, and docs.
Stack
- #7820 export the format schemas from
@containerbase/base - #7823 embed the release archive in the image
- #7825 CLI: read the embedded data, fall back when the upstream lookup fails
- #7826 CLI: resolve partial versions from the embedded data
- CLI: install from the embedded
files - git: offline prebuild check (after #7813)
Open question: may the embedded data skip the upstream lookup for an exact version it already knows?
Uses the release archive (containerbase/tool-versions#86). Part of #7673.
Drafted by Claude Opus 5.5 (Claude Code) for @viceice.
- 主要言語
- TypeScript
- スター
- 58
- フォーク
- 65
- 平均マージ
- 11時間 54分
- マージ済み PR(30日)
- 428
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
containerbase/base のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
containerbase/base#7891 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
containerbase/base#7842 ·
メンテナーはふだん 1 日以内に返信
-
priority-3-normal tool/dotnet
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
containerbase/base#5996 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
containerbase/base#7908 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
containerbase/base#7902 ·
メンテナーはふだん 1 日以内に返信
containerbase/base の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kunchenguid/gh-axi#220 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
prerender: wait for env-runner worker readiness before crawling対応中かも @sarankumar1325 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信