Dashboardopencode-loreort-native preserve-symlinks assertion

ort-native preserve-symlinks assertion

Category: gotcha
Confidence: 1.00
ID: 01a0a650-8c14-7c24-9f4a-ae1174aed69a
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 0JhZubf6KiZuuXUlD
Created: 2026-09-15 18:24:51
Updated: 2026-09-15 18:24:51

Content

Trap: comparing resolveNativeOrtBindingPath() with raw require.resolve() output looks exact because both identify the same addon, but pnpm symlinks and NODE_OPTIONS=--preserve-symlinks can produce different textual paths. Fix: canonicalize the expected path with realpathSync, matching the resolver’s physical-path contract.

Move to: