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
fix(dlx-binary): add comprehensive error handling for binary downloads
Improve error messages for binary download and caching failures:
- httpDownload failures: Include URL and destination with connectivity guidance
- EACCES/EPERM: Permission denied with directory path and fix suggestions
- EROFS: Read-only filesystem with SOCKET_DLX_DIR configuration hint
Applied to both dlxBinary() and downloadBinary() functions for consistency.
Also deprecates download-lock.ts in favor of process-lock.ts's superior
directory-based locking mechanism.
Copy file name to clipboardExpand all lines: src/download-lock.ts
+16-4Lines changed: 16 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,13 @@
1
-
/** @fileoverview Download locking utilities to prevent concurrent downloads of the same resource. Uses file-based locking for cross-process synchronization. */
1
+
/**
2
+
* @fileoverview Download locking utilities to prevent concurrent downloads of the same resource. Uses file-based locking for cross-process synchronization.
3
+
* @deprecated This module is deprecated in favor of `process-lock.ts` which uses
4
+
* directory-based locking (via `mkdir()`) that's more reliable across all filesystems
5
+
* including NFS. See process-lock.ts for detailed explanation of why directory-based
6
+
* locking is superior to file-based locking.
7
+
*
8
+
* Migration: Use `processLock.withLock()` from `./process-lock` instead of
0 commit comments