mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
### What does this PR do? `PackageManager.temp_dir_path` is used for manifest serialization on windows. It is also accessed and potentially set on multiple threads. To avoid the problem entirely this PR wraps `getTemporaryDirectory` in `bun.once`. fixes #22748 fixes #22629 fixes #19150 fixes #13779 ### How did you verify your code works? Manually --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>