fix(ci): add git_only option to release-plz config for unpublished packages - #9
Conversation
…ckages When publish=false but git_only is not set, release-plz attempts to check crates.io registry and fails to detect unreleased changes. Setting git_only=true enables git tag-based version detection for packages distributed as binaries via cargo-dist. 🤖 Generated with AI
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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.
Pull request overview
This PR fixes a configuration issue in release-plz that prevented it from detecting unreleased changes. The project distributes binaries via cargo-dist rather than publishing to crates.io, but the git_only option was missing from the configuration. Without this option, release-plz attempts to check the crates.io registry (which always fails when publish=false) instead of using git tags for version detection.
Changes:
- Add
git_only = trueto release-plz.toml to enable git tag-based version detection
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
When
publish=falsebutgit_onlyis not set, release-plz attempts to check the crates.io registry and fails to detect unreleased changes. This causes therelease-prcommand to output "the repository is already up-to-date" and skip PR creation.Setting
git_only=trueenables git tag-based version detection for packages distributed as binaries via cargo-dist, rather than relying on the cargo registry.Test plan
release-plz release-prnow detects changes and creates a release PR with version bumprelease-plz releasecreates tags as expected🤖 Generated with Claude Code