Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make version part of the release commit #45

Merged
merged 1 commit into from
Mar 3, 2023
Merged

Conversation

vmx
Copy link
Contributor

@vmx vmx commented Mar 3, 2023

The default behaviour of cargo release changed in v0.25. When there is a workspace, it now consolidates all changes into a single commit by default. This means that the commit message can't contain the version number of a specific crate.

With adding a relase.toml file with the consolidate-commits = false options restores the old behaviour and you get separate commits. We release those two crates separatly anyway.

I decided to use the release.toml file instead of putting it into the Cargo.toml, to make it clearer that we use custom cargo-release options. This can easily be overlooked if it's just a value in the Cargo.toml.

The default behaviour of cargo release changed in v0.25. When there
is a workspace, it now consolidates all changes into a single commit
by default. This means that the commit message can't contain the
version number of a specific crate.

With adding a relase.toml file with the `consolidate-commits = false`
options restores the old behaviour and you get separate commits. We
release those two crates separatly anyway.

I decided to use the release.toml file instead of putting it into
the Cargo.toml, to make it clearer that we use custom cargo-release
options. This can easily be overlooked if it's just a value in
the Cargo.toml.
@vmx vmx requested a review from cryptonemo March 3, 2023 10:17
@vmx
Copy link
Contributor Author

vmx commented Mar 3, 2023

I dare to merge that without a review as it isn't a code change, but it's about releasing things. It can also be changed again after the next release.

@vmx vmx merged commit 8295bc8 into master Mar 3, 2023
@vmx vmx deleted the add-release-toml branch March 3, 2023 10:34
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.

None yet

1 participant