Skip to content

Commit 505d16e

Browse files
committed
fix(onnx): fix second readCheckpoint usage in export stage
Fix another instance of readCheckpoint usage in the export stage of ONNX Runtime build script.
1 parent 560ebcd commit 505d16e

File tree

1 file changed

+2
-2
lines changed
  • packages/onnx-runtime-builder/scripts

1 file changed

+2
-2
lines changed

packages/onnx-runtime-builder/scripts/build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ async function exportWasm() {
315315
await fs.mkdir(OUTPUT_DIR, { recursive: true })
316316

317317
// Get WASM file location from verified checkpoint.
318-
const { readCheckpoint } = await import('@socketsecurity/build-infra/lib/checkpoint-manager')
319-
const checkpoint = await readCheckpoint('onnx-runtime', 'verified')
318+
const { getCheckpointData } = await import('@socketsecurity/build-infra/lib/checkpoint-manager')
319+
const checkpoint = await getCheckpointData('onnx-runtime', 'verified')
320320
const wasmFile = checkpoint?.wasmFile || path.join(BUILD_DIR, 'MinSizeRel', 'onnxruntime-web.wasm')
321321

322322
if (!existsSync(wasmFile)) {

0 commit comments

Comments
 (0)