zlacker

[parent] [thread] 1 comments
1. rikafu+(OP)[view] [source] 2025-12-02 21:34:12
Any chance there will be some kind of updating mechanism for 'compiled' bun executables?
replies(1): >>Jarred+hm
2. Jarred+hm[view] [source] 2025-12-02 23:50:33
>>rikafu+(OP)
I have a PR that’s been sitting for awhile that exposes the extra options from the renameat2 and renameatx_np syscalls which is a good way to implement self-updaters that work even when multiple processes are updating the same path on disk at the same time. These syscalls are supported on Linux & macOS but I don’t think there’s an equivalent on Windows. We use these syscalls internally for `bun install` to make adding packages into the global install cache work when multiple `bun install` processes are running simultaneously

No high-level self updater api is planned right now, but yes for at least the low level parts needed to make a good one

[go to top]