Skip to content

bridge: re-pin Cargo.lock so --locked builds again (unbreaks main) - #191

Closed
GoKubar wants to merge 1 commit into
mainfrom
agent/kabir-claude/bridge-lockfile-repin
Closed

GoKubar wants to merge 1 commit into
mainfrom
agent/kabir-claude/bridge-lockfile-repin

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

main is red and this is one of the four reasons. rust bridge has failed on both ubuntu-latest and macos-15 since 1d2a0b6b, at the cargo build --release --locked step:

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

Cause

a4e20cb9 added flashtex-compiler = { path = "../compiler" } to crates/bridge/Cargo.toml. Because it is a path dependency, bridge's lock must also carry the compiler's own path dependencies — and the 17-PR batch gave the compiler five new ones. crates/bridge/Cargo.lock was never regenerated, so it stopped describing the real graph and --locked correctly refused.

This is exactly the re-pin flagged on issue #2 at 17:52Z.

The change

cargo update --workspace --offline, run in crates/bridge. Purely additive:

  • added: flashtex-document-style, flashtex-microtype, flashtex-tex-boxes, flashtex-tex-expansion, flashtex-tex-text-encoding — all local path crates at 0.1.0
  • removed: nothing
  • external crate versions changed: none (git diff has no - lines at all)

Resolved offline, so no registry drift could sneak in.

Verification

Clean worktree off 31be6f9e:

command result
cargo build --release --locked exit 0
cargo test --release --locked --no-fail-fast 165 passed, 0 failed

Not fixed here

The other three failures on main are separate and untouched by this PR:

  • rust project-files — nfc_nfd_reference_collision_does_not_duplicate_the_file (tests/graph.rs:469). Reproduces locally. Linux-only by nature: it passes on macos-15 because APFS normalises filenames and ext4 does not, so the collision path only really executes on Linux.
  • rust render-pipeline — enumitem_nosep_noitemsep_and_explicit_keys_match_pdflatex (tests/enumitem_keys_oracle.rs:142), failing on both OSes, so not environmental.
  • iPad companion — Keychain OSStatus -34018, a runner entitlement issue rather than a code regression.

Implementation-Agent: kabir-claude (linux-primary / NixOS)

main has been red on `rust bridge` for both ubuntu-latest and macos-15 since
1d2a0b6: `cargo build --release --locked` exits 101 with "cannot update the
lock file ... because --locked was passed to prevent this".

Cause: a4e20cb added `flashtex-compiler = { path = "../compiler" }` to
crates/bridge. Being a path dependency, bridge's lock has to carry the
compiler's own path deps too, and the 17-PR batch gave the compiler five new
ones. bridge/Cargo.lock was never regenerated, so it no longer describes the
graph and --locked refuses to proceed.

`cargo update --workspace --offline` in crates/bridge. The diff is purely
additive -- five local path crates (flashtex-document-style, flashtex-microtype,
flashtex-tex-boxes, flashtex-tex-expansion, flashtex-tex-text-encoding), zero
deletions, and no external crate version moves at all.

Verified in a clean worktree off 31be6f9:
  cargo build --release --locked   -> exit 0
  cargo test  --release --locked   -> 165 passed, 0 failed

Implementation-Agent: kabir-claude (linux-primary / NixOS)
Commit-Executor: kabir-claude (direct git; Cursor usage limit in effect)
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
@GoKubar

GoKubar commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

Integration lane check: this looks stale — main is no longer red for this reason.

Verified on a clean checkout of current main (9d85ba8d), running exactly what CI runs:

$ cd crates/bridge && cargo build --release --locked
   Compiling flashtex-compiler v0.1.0
   Compiling flashtex-bridge v0.1.0
    Finished `release` profile [optimized] target(s) in 8.80s
exit 0
$ git status --short crates/bridge/Cargo.lock
(clean)

All five packages this PR adds are already present in main's crates/bridge/Cargo.lock — flashtex-document-style, flashtex-microtype, flashtex-tex-boxes, flashtex-tex-expansion, flashtex-tex-text-encoding — and rust bridge (ubuntu-latest), whose build step is cargo build --release --locked (.github/workflows/ci.yml:78), passes on every PR I merged today.

So the lock came into line by some other route since 2026-09-13. I have not merged this and have not closed it — re-applying its +27 lines on top of a lock that already resolves could churn the file for no gain. Leaving the call to you; if you agree it is spent, close it.

Not merged as part of today's Rust backlog pass for that reason.

@GoKubar

GoKubar commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

Closing as obsolete: main's crates/bridge/Cargo.lock has been re-pinned several times since this was opened (97a02a2 "bridge: refresh Cargo.lock for the compiler's new path deps", then integration #645), and cargo tree --locked --manifest-path crates/bridge/Cargo.toml succeeds on current main (2d1b517), so the --locked breakage this PR fixed no longer exists. This branch's lockfile is now the stale one (it still lacks flashtex-bibliography).

@GoKubar GoKubar closed this Sep 15, 2026
@GoKubar
GoKubar deleted the agent/kabir-claude/bridge-lockfile-repin branch September 16, 2026 04:18
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