Skip to content

fix: pin Cargo.lock to unbreak CI dependency resolution - #102

Merged
Jaydbrown merged 1 commit into
mainfrom
fix/pin-ed25519-dalek-ci-break
Jul 9, 2026
Merged

fix: pin Cargo.lock to unbreak CI dependency resolution#102
Jaydbrown merged 1 commit into
mainfrom
fix/pin-ed25519-dalek-ci-break

Conversation

@Jaydbrown

Copy link
Copy Markdown
Contributor

Summary

  • CI (and any fresh local build) currently fails to compile with --features testutils because ed25519-dalek published a breaking 3.0.0 that soroban-env-host's test PRNG helper can't satisfy (ChaCha20Rng no longer implements the CryptoRng bound SigningKey::generate requires).
  • Cargo.lock was gitignored, so every fresh dependency resolution — including CI once its cache rolls over — picks up the break. Confirmed this fails identically on unmodified main, not something introduced by other work.
  • Un-ignores and commits Cargo.lock, pinned to ed25519-dalek 2.2.0, so builds are reproducible and this class of upstream breakage can't reoccur silently.
  • Discovered while working on Add emergency pause switch to the AMM pool #101 (emergency pause switch), whose CI is red for this exact reason.

Test plan

  • cargo test --features testutils — 24 passed, 0 failed
  • cargo clippy --all-targets --features testutils -- -D warnings — clean
  • cargo build --release --target wasm32v1-none — succeeds

ed25519-dalek published a breaking 3.0.0 that soroban-env-host's
testutils can't compile against (ChaCha20Rng no longer satisfies its
CryptoRng bound). Without a committed lockfile, every fresh
resolution -- including CI once its cache rolls over -- picks up the
break. Pin the whole graph so builds are reproducible and this class
of upstream breakage can't reoccur silently.
@Jaydbrown
Jaydbrown merged commit 0d77840 into main Jul 9, 2026
3 checks passed
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