概览
dsh-hardlink-publish-fallback
README / ZH
插件文档
目录摘要
dsh.pub 核对固定版本的组合包契约、运行时事实与分发语义;完整 README 请查看源仓库。
在 GitHub 阅读完整 READMELIMITATIONS
已知限制
- **Only repairs new-file creation.** Updates and `edit` never used the hard-link path, so they are already fine and are not intercepted. - **Windows-oriented symptom, host-agnostic logic.** The plugin keys on the failure signature, not on the platform, so it also covers any POSIX filesystem that refuses `link()` with the same shape. - **Does not help when writing to a drive root.** A separate, cross-filesystem defect makes `writeFileAtomic` call `mkdir(<root>, { recursive: true })`, which returns `EPERM` on Windows drive roots (verified here on both an NTFS and an exFAT volume). Because this plugin completes the write through the same service, a new file written directly at a drive root still fails. Use a subdirectory. - **Not a substitute for an upstream fix.** This is a runtime workaround for a defect in `dsh-fs-local`'s publication logic; see [DEFECT-REPORT.md](./DEFECT-REPORT.md) for the full analysis and a proposed fix. - **A small, inherited TOCTOU window.** The absence re-check and the write are separate calls. This is the same window the original `writeText` already has between its own probe and its publication; the no-clobber guard is what the re-check preserves, and a racing creator still cannot be silently overwritten beyond that window.
