Skip to content

fix: sync Cargo.lock to 1.2.1 - #367

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/lock-1.2.1
Oct 1, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/lock-1.2.1

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Syncs Cargo.lock to match the Cargo.toml version bumped in #366.

Why

#366 bumped Cargo.toml to 1.2.1 but left Cargo.lock declaring rubash 1.2.0.
Any cargo build --locked against this checkout then fails:

error: cannot update the lock file D:\a\niubash\rubash\Cargo.lock because
--locked was passed to prevent this

rubash's own CI does not catch this — it runs cargo check from the repo root,
where the lock is consistent enough to pass. It only surfaces on a consumer
build, which is exactly what niubash's release workflow does:

scripts/package-release.ps1 builds a bash shim inside the cloned ../rubash
checkout with --locked, and that step died on the v1.2.1 tag run.

Change

One line: Cargo.lock → rubash version 1.2.0 → 1.2.1.

Evidence

Failed release run: https://github.com/unixwin/niubash/actions/runs/36802287260

##[group]Run ./scripts/package-release.ps1 ...
    Updating crates.io index
error: cannot update the lock file D:\a\niubash\rubash\Cargo.lock because
--locked was passed to prevent this
Exception: scripts\package-release.ps1:84
  84 |  throw "Failed to build $Name shim."
     |  Failed to build bash shim.
##[error]Process completed with exit code 1.

Both matrix legs (x64 and arm64) fail identically.

#366 bumped Cargo.toml to 1.2.1 but left Cargo.lock at 1.2.0, so any
`cargo build --locked` against this checkout fails with:

  error: cannot update the lock file .../Cargo.lock because --locked was
  passed to prevent this

This breaks niubash's release workflow, which builds a bash shim inside
the cloned ../rubash checkout. rubash's own CI does not catch it because
it runs `cargo check` from the repo root rather than against a --locked
consumer build.
@caomengxuan666
caomengxuan666 merged commit 2e6b0e9 into master Oct 1, 2026
6 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/lock-1.2.1 branch October 10, 2026 01:23
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