Commit 95a41c7
fix(deps): pin ort to =2.0.0-rc.11 so cargo install doesn't break
Reported by @gianpaj after trying \`cargo install ck-search\` on 0.7.6:
36 errors cascading out of ck-embed::mixedbread, all of the form
"cannot convert ort::Error<SessionBuilder> to anyhow::Error".
Root cause: cargo install (without --locked) ignores Cargo.lock and
re-solves dependencies from scratch. Our \`ort = "2.0.0-rc.11"\` is a
caret range that lets cargo pick 2.0.0-rc.12. rc.12 made
SessionOptionsPointer wrap a NonNull<OrtSessionOptions> which is
!Sync, which propagates up: SessionBuilder is no longer Sync, so
ort::Error<SessionBuilder> is no longer Send+Sync, so it can't be
?-converted into anyhow::Error (which requires both).
Workaround for users: \`cargo install ck-search --locked\` honors the
published lockfile. But that's a footgun we shouldn't ship with.
Real fix: pin to \`=2.0.0-rc.11\` exact so any resolution path picks
the version we tested against. Follow-up: evaluate rc.12 upgrade
separately — likely needs ck-embed::mixedbread to map ort errors
manually via .map_err instead of relying on `From` blanket impl.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d94cf3f commit 95a41c7
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
0 commit comments