Skip to content

fix: ignore unrelated closures without AnalyzeTarget import - #23

Merged
mackee merged 1 commit into
mainfrom
fix/genclient-ignore-unrelated-closures
Oct 2, 2026
Merged

mackee merged 1 commit into
mainfrom
fix/genclient-ignore-unrelated-closures

Conversation

@mackee

@mackee mackee commented Oct 2, 2026

Copy link
Copy Markdown
Owner

概要

tanukirpc を利用していても genclient.AnalyzeTarget をインポートしていないパッケージで、無関係なクロージャの呼び出しが解析対象と誤認され、複数の AnalyzeTarget があるという誤診断が出る問題を修正します。

AnalyzeTarget のオブジェクトが見つからない場合は空の解析結果を返します。クロージャを2回呼び出す回帰テストを追加しました。

検証

  • go test ./genclient 成功
  • git diff --check 成功
  • Go の overlay で修正前の実装に戻すと、追加テストが誤診断により失敗することを確認

@mackee
mackee merged commit 1122421 into main Oct 2, 2026
6 checks passed
@mackee
mackee deleted the fix/genclient-ignore-unrelated-closures branch October 2, 2026 06:01
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.

1 participant