Skip to content

fix(deps): pin rand 0.9 to match ndarray-rand 0.16 — un-break workspace build#129

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/esn-lsm-rand-0.10
Jun 2, 2026
Merged

fix(deps): pin rand 0.9 to match ndarray-rand 0.16 — un-break workspace build#129
hyperpolymath merged 1 commit into
mainfrom
fix/esn-lsm-rand-0.10

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

main's Rust workspace does not compile — this fixes it

crates/esn and crates/lsm fail to build on main. A dependabot bump set rand = "0.10" in the workspace Cargo.toml, but ndarray-rand 0.16 bundles rand 0.9 — so two incompatible rand crates end up in the tree and the Normal/Bernoulli distributions and Rng trait no longer line up (E0277), plus random()/sample() appear "moved" (E0599).

This went undetected because rust-ci dies at startup (0 jobs) — the estate rust-ci-reusable is broken (separate, upstream issue in hyperpolymath/standards), so nothing actually compiled the workspace in CI.

Fix

Revert rand0.9 and rand_distr0.5 (the line ndarray-rand 0.16 expects). No source changes needed; the committed Cargo.lock already resolves rand 0.9, so only Cargo.toml drifted.

Verified locally

  • cargo build --workspace → Finished
  • cargo test --workspace → all green (esn/lsm/bridge/sensors/core/claude-client + proptests + lifecycle/concurrency), 0 failures.

This unblocks every open gossamer sub-PR draft (#121#128), whose workspace verification was failing on this exact pre-existing break. Recommend merging first. (rust-ci itself will stay red until the standards reusable is fixed — tracked separately.)

https://claude.ai/code/session_01Gu1JFCZHuBtBhAWPr4sMQw


Generated by Claude Code

main's Rust workspace did not compile: a dependabot bump to rand 0.10 pulled a
second, incompatible rand into the tree (ndarray-rand 0.16 bundles rand 0.9), so
esn/lsm failed with Distribution/Rng trait mismatches (E0277) and the moved
random()/sample() methods (E0599). rust-ci never caught it because that reusable
dies at startup (0 jobs).

Revert rand to 0.9 / rand_distr to 0.5 (ndarray-rand 0.16's rand line); no source
changes needed. cargo build --workspace + cargo test --workspace now green.

https://claude.ai/code/session_01Gu1JFCZHuBtBhAWPr4sMQw
hyperpolymath pushed a commit that referenced this pull request Jun 2, 2026
Captures: proof tiers 0-3 merged; main state (MPL, android carve-out,
upstream rust-ci/hypatia reds); my open PRs (#129 merge-first, #125, #119);
the gossamer migration map (#83, sub-issues #108-115, sub-PRs #121-130);
blocked owner decisions; and dispatchable prompts already drafted.

https://claude.ai/code/session_01Gu1JFCZHuBtBhAWPr4sMQw
@hyperpolymath hyperpolymath merged commit 6a5c79a into main Jun 2, 2026
26 checks passed
@hyperpolymath hyperpolymath deleted the fix/esn-lsm-rand-0.10 branch June 2, 2026 15:54
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.

2 participants