Commit 8f3913b
committed
deps(workspace): add [patch.crates-io] ndarray → AdaWorldAPI fork (declared intent)
Per user directive 2026-05-28 ("don't use crates.io; just use [patch] to
overwrite ndarray = 0.16 with 0.17.2"). Adds:
[patch.crates-io]
ndarray = { git = "https://github.com/AdaWorldAPI/ndarray.git", branch = "master" }
The fork is at `version = "0.17.2"` (verified `/home/user/ndarray/Cargo.toml`
+ `git ls-remote https://github.com/AdaWorldAPI/ndarray.git` HEAD =
0129b5c8). Workspace-direct ndarray consumers (already path-wired) continue
to resolve to 0.17.2 from local source.
Observed cargo behavior (verified `cargo check -p lance-graph-ontology`):
- Build succeeds in 37s (5 unrelated oxrdf deprecation warnings only).
- Cargo emits: `warning: patch ndarray v0.17.2 (...) was not used in the
crate graph`. Reason: lance-index 6.0.0 pins `ndarray = "0.16.1"` (with
`matrixmultiply-threading`); cargo's `[patch]` requires semver-compat,
so the 0.17.2 fork can't replace the 0.16 transitive.
- Cargo.lock now has THREE ndarray entries:
1. `ndarray 0.16.1` from `registry+https://github.com/rust-lang/crates.io-index`
(lance-index transitive — UNCHANGED).
2. `ndarray 0.17.2` (no source = local path) — workspace-direct.
3. `[[patch.unused]] ndarray 0.17.2` from `git+...?branch=master#0129b5c8`
— declared intent, not applied.
This patch is therefore a DECLARED INTENT that surfaces the semver gap at
every `cargo check` via the "patch unused" warning (the diagnostic codex was
asking for). The full unblock still needs either:
(a) A `0.16.x`-versioned branch on AdaWorldAPI/ndarray with the fork's
patches forward-ported, OR
(b) Upstream lance-index to bump to ndarray 0.17.
BLOCKED(D) comment in the workspace Cargo.toml updated to reflect this; the
TD-NDARRAY-PATCH-0_16 entry filed earlier still tracks the gap.
https://claude.ai/code/session_01FMooFcE7hgRWWvknNr2N4i1 parent 2e001a5 commit 8f3913b
1 file changed
Lines changed: 27 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
97 | 104 | | |
98 | 105 | | |
99 | 106 | | |
| |||
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
0 commit comments