Skip to content

chore: switch version.go to inline release-please marker#106

Merged
jun06t merged 1 commit into
masterfrom
chore/inline-version-annotation
May 20, 2026
Merged

chore: switch version.go to inline release-please marker#106
jun06t merged 1 commit into
masterfrom
chore/inline-version-annotation

Conversation

@jun06t
Copy link
Copy Markdown
Owner

@jun06t jun06t commented May 20, 2026

Summary

block marker (x-release-please-start-version / x-release-please-end) ではなく、行末注釈 // x-release-please-version 1 行に切り替える。

block marker は const と end-marker コメントの間に gofmt が空行を要求するため、運用上のノイズになる。行末注釈の単一行マーカーなら自然な Go コードのまま release-please の自動 bump も動く。

検証ゴール

マージ後、release-please workflow が走り:

  • 3 component (unary / metadata / keepalive) の Release PR が立つ(path filter は前回と同じ仕組み)
  • 各 Release PR で version.go の BuildVersion が次バージョンに自動書き換わる(行末注釈でも置換が機能することの確認)

Block marker (start/end) requires a blank line before the end-marker comment
under gofmt, which conflicts with our desire to keep the marker block dense.

The inline single-line variant works for release-please and is naturally
gofmt/gofumpt compliant without any nolint directives.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jun06t jun06t force-pushed the chore/inline-version-annotation branch from 317b6eb to 31d6a51 Compare May 20, 2026 05:52
@jun06t jun06t changed the title feat: switch version.go to inline release-please marker chore: switch version.go to inline release-please marker May 20, 2026
@jun06t jun06t merged commit f0ca86b into master May 20, 2026
1 check passed
@jun06t jun06t deleted the chore/inline-version-annotation branch May 20, 2026 05:52
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