Skip to content

Bump Cargo.lock with the rest of the version - #269

Merged
ramonski merged 1 commit into
masterfrom
fix/bump-version-forgets-the-lockfile
Sep 15, 2026
Merged

ramonski merged 1 commit into
masterfrom
fix/bump-version-forgets-the-lockfile

Conversation

@ramonski

Copy link
Copy Markdown
Member

bump-version.sh writes the new version into pyproject.toml, tauri.conf.json, Cargo.toml and frontend/package.json. It does not touch Cargo.lock, which carries the crate's own version too.

The committed lock said 2.8.3 while Cargo.toml said 2.9.1, so cargo rewrote it on the first build and left the tree dirty:

 M desktop/src-tauri/Cargo.lock
-version = "2.8.3"
+version = "2.9.1"

That is noise on every checkout that builds, and noise of exactly the kind that teaches people to git checkout -- a file without reading it. I did that twice myself during this review before looking at what it was.

cargo update --offline -p kaisho-desktop updates that one entry: --offline so a version bump does not need the network, -p so no dependency moves as a side effect. The lock is brought to 2.9.1 in the same commit.

bump-version.sh writes the new version into
pyproject.toml, tauri.conf.json, Cargo.toml and
frontend/package.json. It does not touch Cargo.lock, which
carries the crate's own version too.

The committed lock said 2.8.3 while Cargo.toml said 2.9.1,
so cargo rewrote it on the first build and left the tree
dirty. That is noise on every checkout that builds, and
noise of exactly the kind that teaches people to discard a
file without reading it -- I did that twice during this
review before looking at what it was.

cargo update --offline -p kaisho-desktop updates that one
entry: --offline so a version bump does not need the
network, -p so no dependency moves as a side effect. The
lock is brought to 2.9.1 in the same commit.
@ramonski
ramonski merged commit 3b518b2 into master Sep 15, 2026
@ramonski
ramonski deleted the fix/bump-version-forgets-the-lockfile branch September 15, 2026 07:14
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