feat(init,commands): infer the preset from .talm-preset.lock
評価
調査の方向性
Start by reading the init --update preset inference path and CheckChartDrift, then inspect how .talm-preset.lock is written and how the existing preset-drift message reads it. Run the relevant tests for update preset selection and chart drift; done means the lock supplies the fallback preset and remediation hint, while projects without a lock retain current behavior.
索引モデルが issue の本文から書いたものです。
説明
Problem
talm init --update without --preset resolves the preset from Chart.yaml dependencies, which an init'd project does not record — so the bare form always errors and every remediation hint must carry --preset <preset>. Likewise, the library-drift warning prints a literal <preset> placeholder even though the project records the actual preset name.
Proposal
.talm-preset.lock (introduced in #216) already pins preset: <name> at the project root. Use it as the fallback in the inference chain for init --update: --preset flag → Chart.yaml dependencies → .talm-preset.lock. Let CheckChartDrift read the lock (best-effort) as well, substituting the real preset name into the remediation hint instead of the placeholder — matching what the preset-drift message already does. Projects without a lock keep the current behavior.
Suggested while reviewing #216; deferred there to keep the review scope tight.
- 主要言語
- Go
- スター
- 493
- フォーク
- 23
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cozystack/talm のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1時間未満 初心者へのやさしさ 70/100
-
area/apply area/commands area/upgrade kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Correct local module testing instructions for Go sample contributors対応中かも @slievrly が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8対応中かも @pacwestnobody が今日担当しました。 オープンgo good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Podiom/Podiom#427 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -race対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
factory:subtask
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
メンテナーはふだん 1 日以内に返信