Skip to content

fix(dist): bin/harness-* を git tracked 化 (v4.0.4) — marketplace でバイナリが届かない問題を修正 - #80

Merged
Chachamaru127 merged 1 commit into
mainfrom
fix/bin-tracked-v4.0.4
Apr 14, 2026
Merged

Chachamaru127 merged 1 commit into
mainfrom
fix/bin-tracked-v4.0.4

Conversation

@Chachamaru127

@Chachamaru127 Chachamaru127 commented Apr 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

Why

marketplace 配布は git clone ベース で動くため、GitHub Release assets に置いたバイナリは届かない。
shim のフェイル挙動は df1780f で修正済みだが、それはエラー出力を止めただけで、エンジン本体が無いので
ガードレールは効いていない状態だった。

Changes

File Change
bin/harness-darwin-amd64 新規追加(tracked、11M)
bin/harness-darwin-arm64 新規追加(tracked、10M)
bin/harness-linux-amd64 新規追加(tracked、11M)
.gitignore bin/harness-* を外し bin/harness.exe bin/harness-native のみ ignore
bin/.gitignore 同じ方針でコメント付きで整理
VERSION / .claude-plugin/plugin.json / harness.toml 4.0.4 に同期
CHANGELOG.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 failed
  • bash scripts/sync-version.sh check が 4.0.4 で一致
  • PR マージ後に v4.0.4 tag を打ち GitHub Release を作成

Related

🤖 Generated with Claude Code

Summary by CodeRabbit

リリースノート v4.0.4

  • Bug Fixes

    • marketplace インストール時のプラットフォームバイナリ欠落問題を修正
    • 配布メカニズムの正規化動作を修正
  • Chores

    • 複数のマニフェストとバージョンファイルを 4.0.4 に更新
    • プラットフォーム固有バイナリの追跡方法を更新

…ナリが届かない致命的バグを修正

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>
@coderabbitai

coderabbitai Bot commented Apr 14, 2026 •

Copy link
Copy Markdown

ウォークスルー

バージョン 4.0.3 から 4.0.4 へのリリース。マーケットプレイス配布時に欠落していたプラットフォーム固有バイナリ(darwin-arm64、darwin-amd64、linux-amd64)を Git リポジトリで追跡対象にする変更。バージョン番号、マニフェスト、CHANGELOG、.gitignore ルールを更新。

Changes

Cohort / File(s) Summary
バージョン情報
.claude-plugin/plugin.json, VERSION, harness.toml
プラグインマニフェストとプロジェクト設定ファイル全体でバージョンを 4.0.3 から 4.0.4 へ更新。
Gitignore ルール更新
.gitignore, bin/.gitignore
ルートの .gitignore で bin/harness-* ワイルドカードを bin/harness.exe と bin/harness-native の明示的パターンに置き換え。bin/.gitignore でプラットフォームバイナリ(darwin-arm64、darwin-amd64、linux-amd64)を無視リストから削除し、マーケットプレイス配布用に追跡対象へ変更。
CHANGELOG
CHANGELOG.md
v4.0.4 リリースセクションを追加。マーケットプレイスインストール時のプラットフォームバイナリ欠落およびフック配布の正規化問題の修正について記載。比較リンク参照を更新。

推定コードレビュー作業量

🎯 1 (Trivial) | ⏱️ ~5 minutes

ポエム

🐰✨ 新しいバージョンでウサギは跳ぶ
M1 マック、Linux WSL2 も対応
バイナリを追跡して、迷い道なし
マーケットプレイスで全プラットフォーム
4.0.4、バグ修正の春 🌸

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: fixing marketplace binary distribution issues by git-tracking platform-specific harness binaries (v4.0.4).
Linked Issues check ✅ Passed All code changes directly address linked issues #75 and #76: darwin-arm64 and linux-amd64 binaries are now tracked and distributed with marketplace installs.
Out of Scope Changes check ✅ Passed All changes are in scope: version bumps (4.0.3→4.0.4), .gitignore updates for binary tracking, CHANGELOG updates, and manifest updates are all necessary to support the binary distribution fix.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/bin-tracked-v4.0.4

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between df1780f and 2fe8f0b.

📒 Files selected for processing (9)
  • .claude-plugin/plugin.json
  • .gitignore
  • CHANGELOG.md
  • VERSION
  • bin/.gitignore
  • bin/harness-darwin-amd64
  • bin/harness-darwin-arm64
  • bin/harness-linux-amd64
  • harness.toml

Comment thread CHANGELOG.md
shim 側のフェイル挙動は直前の fix(df1780f3)でエラー出力こそ止めましたが、ガードレール本体は依然として
動いていない状態でした。

**今後**: `bin/.gitignore` からプラットフォームバイナシを除外し、3 プラットフォーム分のバイナリを

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

軽微な誤字を修正してください。

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.

Suggested change
**今後**: `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.

@Chachamaru127
Chachamaru127 merged commit 9a8abad into main Apr 14, 2026
3 checks passed
@Chachamaru127
Chachamaru127 deleted the fix/bin-tracked-v4.0.4 branch April 14, 2026 14:02
@coderabbitai coderabbitai Bot mentioned this pull request Jun 18, 2026
3 of 5 tasks
@coderabbitai coderabbitai Bot mentioned this pull request Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Marketplace distribution missing compiled Go binary for linux-amd64 (WSL2) support Mac M1 chip?

1 participant