fix(v2): pin onnxruntime_go to v1.12.1 to match onnxruntime 1.19.2 DLL

v1.31.0 requested ORT_API_VERSION 26 (onnxruntime 1.26); the field DLL is
Python 3.8's onnxruntime 1.19.2 (API 19), so GetApi(26) returned NULL and
init failed. v1.12.1 targets ORT API 19, matching the existing DLL with no
download. Verified: native cgo build of internal/spike compiles ort.go
against v1.12.1; Gio UI still cross-compiles for Windows.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ila
2026-07-23 16:04:09 +08:00
co-authored by Claude Opus 4.8
parent 539a6026a0
commit 97c1c4a974
3 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ go 1.24.0
require (
gioui.org v0.10.1
github.com/yalue/onnxruntime_go v1.31.0
github.com/yalue/onnxruntime_go v1.12.1
golang.org/x/image v0.26.0
golang.org/x/sys v0.39.0
)