bumper icon indicating copy to clipboard operation
bumper copied to clipboard

Setting out to `Cargo.toml` with `workspace.package.version` result in format changing.

Open kareemmahlees opened this issue 1 year ago • 4 comments

Problem

I have a Rust application and I would like to pump the version in my Cargo.toml each time I make a new release. My version field resides under workspace.package.version, every time I try to pump the version bumper seems to reformat the whole file into a different format:

  • Adding indentations.
  • Splitting dependencies into workspace.dependencies.serde and so on.

Desired solution

Nothing should change except for the version.

Workaround

I had to install another crate ( cargo-edit ) with an after:bump hook to update the version.

kareemmahlees avatar Sep 13 '24 22:09 kareemmahlees

@kareemmahlees, could you try to upgrade to 7.0.0 and see if your issue has been resolved?

You will also need to upgrade your version of release-it to 18.0.0 as well

PaulBartonADVR avatar Jan 08 '25 17:01 PaulBartonADVR

@pbarton-andovercos roger, I am a bit busy currently so I cannot guarantee when I will confirm this.

kareemmahlees avatar Jan 13 '25 11:01 kareemmahlees

Having the same issue

jimmyn avatar Mar 07 '25 10:03 jimmyn

having this issue with python's pyproject.toml

alex-pirogov avatar Mar 25 '25 13:03 alex-pirogov

For me its also removing any comments that I left before the bump in my pyproject.toml

VhalPurohit avatar Apr 03 '25 19:04 VhalPurohit