Repository navigation
fix(dist): bin/harness-* を git tracked 化 (v4.0.4) — marketplace でバイナリが届かない問題を修正 - #80
Conversation
…ナリが届かない致命的バグを修正
v4.0.3 までは bin/harness-{darwin-arm64,darwin-amd64,linux-amd64} が .gitignore で
untrack されており、GitHub Release assets にだけバイナリを配置していた。しかし
Claude Code の marketplace 配布は git clone ベースで動くため、Release assets は
届かず、linux-amd64 (WSL2) / darwin-arm64 ユーザーで Go hook engine 本体が
存在しない状態だった (#75, #76)。
直前の df1780f で shim のフェイル挙動は修正したが、エンジン自体が無いので
ガードレールは効いていなかった。本コミットでバイナリ 3 プラットフォーム分を
tracked として同梱し、どの配布経路でも即座に稼働する状態にする。
- bin/harness-{darwin-arm64,darwin-amd64,linux-amd64} を tracked に変更(計 ~32MB)
- .gitignore / bin/.gitignore から bin/harness-* 除外を解除
- harness-{native,.exe} などの local-only 成果物は引き続き ignore
- VERSION / plugin.json / harness.toml を 4.0.4 に同期
- CHANGELOG に [4.0.4] を昇格、配布正常化 + shim fix + gitattributes + release 分割を集約
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ウォークスルーバージョン 4.0.3 から 4.0.4 へのリリース。マーケットプレイス配布時に欠落していたプラットフォーム固有バイナリ(darwin-arm64、darwin-amd64、linux-amd64)を Git リポジトリで追跡対象にする変更。バージョン番号、マニフェスト、CHANGELOG、.gitignore ルールを更新。 Changes
推定コードレビュー作業量🎯 1 (Trivial) | ⏱️ ~5 minutes ポエム
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@CHANGELOG.md`:
- Line 31: Replace the typo "プラットフォームバイナシ" with the correct "プラットフォームバイナリ" in
the CHANGELOG entry that starts with "**今後**: `bin/.gitignore`
からプラットフォームバイナシを除外し、3 プラットフォーム分のバイナリを"; update that exact phrase to use "バイナリ" so
the sentence reads correctly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 4643958d-5c37-4774-a8c0-c059d6a2aefe
📒 Files selected for processing (9)
.claude-plugin/plugin.json.gitignoreCHANGELOG.mdVERSIONbin/.gitignorebin/harness-darwin-amd64bin/harness-darwin-arm64bin/harness-linux-amd64harness.toml
| shim 側のフェイル挙動は直前の fix(df1780f3)でエラー出力こそ止めましたが、ガードレール本体は依然として | ||
| 動いていない状態でした。 | ||
|
|
||
| **今後**: `bin/.gitignore` からプラットフォームバイナシを除外し、3 プラットフォーム分のバイナリを |
There was a problem hiding this comment.
軽微な誤字を修正してください。
Line 31 の「プラットフォームバイナシ」は「プラットフォームバイナリ」の誤記に見えます。
修正案
-**今後**: `bin/.gitignore` からプラットフォームバイナシを除外し、3 プラットフォーム分のバイナリを
+**今後**: `bin/.gitignore` からプラットフォームバイナリを除外し、3 プラットフォーム分のバイナリを📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| **今後**: `bin/.gitignore` からプラットフォームバイナシを除外し、3 プラットフォーム分のバイナリを | |
| **今後**: `bin/.gitignore` からプラットフォームバイナリを除外し、3 プラットフォーム分のバイナリを |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@CHANGELOG.md` at line 31, Replace the typo "プラットフォームバイナシ" with the correct
"プラットフォームバイナリ" in the CHANGELOG entry that starts with "**今後**: `bin/.gitignore`
からプラットフォームバイナシを除外し、3 プラットフォーム分のバイナリを"; update that exact phrase to use "バイナリ" so
the sentence reads correctly.
Summary
/plugin marketplace addで harness を入れた WSL2 (linux-amd64) / Apple Silicon (darwin-arm64) ユーザーで Go hook engine 本体が配布物に含まれておらず、platform not supportedが発火していた致命的バグbin/harness-{darwin-arm64,darwin-amd64,linux-amd64}を git tracked として同梱(~32MB 追加)Why
marketplace 配布は git clone ベース で動くため、GitHub Release assets に置いたバイナリは届かない。
shim のフェイル挙動は df1780f で修正済みだが、それはエラー出力を止めただけで、エンジン本体が無いので
ガードレールは効いていない状態だった。
Changes
bin/harness-darwin-amd64bin/harness-darwin-arm64bin/harness-linux-amd64.gitignorebin/harness-*を外しbin/harness.exebin/harness-nativeのみ ignorebin/.gitignoreVERSION/.claude-plugin/plugin.json/harness.tomlCHANGELOG.md[Unreleased]を[4.0.4]に昇格、compare link を更新Binary size
-ldflags="-s -w"strip 済み、modernc.org/sqlite (pure Go) で CGO 不要。合計 ~32MB。Test plan
cd go && bash scripts/build-all.shが 3 プラットフォーム分を正常ビルドbash tests/validate-plugin.shが 39 passed / 0 failedbash scripts/sync-version.sh checkが 4.0.4 で一致v4.0.4tag を打ち GitHub Release を作成Related
🤖 Generated with Claude Code
Summary by CodeRabbit
リリースノート v4.0.4
Bug Fixes
Chores