You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
host-mount reports "does not exist" for a directory that exists but is unreachable #9786
--host-mount validation reports host directory does not exist for every lstat/stat failure, because both failure paths in src/lib/state/registry/host-mount.ts use a bare catch {} that discards the error. A host directory that exists but sits under an unreadable ancestor is therefore reported as missing, and the operator is sent to look for a path that is already there instead of fixing the permission.
Two other functions in the same file, normalizePersistedSandboxHostMounts and verifyReadOnlyHostMountSources, already forward the underlying error, so the diagnostic is available and only this path drops it.
Reproduction Steps
mkdir -p /tmp/hm/locked/share and chmod 000 /tmp/hm/locked.
Run an onboard with --host-mount /tmp/hm/locked/share:/sandbox/host-share.
It fails with host directory does not exist: /tmp/hm/locked/share, although chmod 755 /tmp/hm/locked shows the directory and its contents.
Driving parseReadOnlyHostMount against real temp directories gives a byte-identical detail for the permission-denied case and for a genuinely missing directory, and error.cause is undefined in both.
Activity
fix(host-mount): report the real reason a host directory is unusable (N…