Skip to content

Commit

Permalink
chore: make version part of the release commit (#45)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vmx committed Mar 3, 2023
1 parent d1aa64b commit 8295bc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions release.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
consolidate-commits = false

0 comments on commit 8295bc8

Please sign in to comment.