Skip to content

fix: publish-pypi でルート Cargo.toml もバージョンパッチする#74

Merged
makinzm merged 1 commit intomainfrom
feat/fix-pypi-version-sync
Mar 24, 2026
Merged

fix: publish-pypi でルート Cargo.toml もバージョンパッチする#74
makinzm merged 1 commit intomainfrom
feat/fix-pypi-version-sync

Conversation

@makinzm
Copy link
Copy Markdown
Owner

@makinzm makinzm commented Mar 24, 2026

Summary

  • uv pip install mille 後の mille --version が1つ前のバージョンを表示する問題を修正
  • publish-pypi ジョブの version sync ステップにルート Cargo.toml の sed パッチを追加
  • 原因: packages/pypipath = "../.." でルートクレートに依存しており、clap が CARGO_PKG_VERSION(ルート)をコンパイル時に埋め込むため

Test plan

  • 次回リリース後に uv pip install mille && mille --version でリリースタグと一致することを確認

🤖 Generated with Claude Code

packages/pypi は path = "../.." でルートクレートに依存しており、
clap の #[command(version)] がルートの CARGO_PKG_VERSION を
コンパイル時に埋め込む。ルート Cargo.toml をパッチしないと
`mille --version` が1つ前のバージョンを表示してしまう。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@makinzm makinzm merged commit 2c4d6b9 into main Mar 24, 2026
2 checks passed
@makinzm makinzm deleted the feat/fix-pypi-version-sync branch March 24, 2026 12:39
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