feat(init,commands): infer the preset from .talm-preset.lock

オープン
#220 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@NopeCharon がすでに取り組んでいます。

2026年11月14日 から。

  • #266 @NopeCharon による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
go
領域
cli

調査の方向性

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 の本文から書いたものです。

説明

area/commands kind/feature

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

cozystack/talm のほかの issue

cozystack/talm の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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