diff options
author | 2023-05-26 07:58:30 +0300 | |
---|---|---|
committer | 2023-05-25 21:58:30 -0700 | |
commit | 4c566f56c1412201f9de50804960cb0b79b7af4a (patch) | |
tree | 0a390ff4183ac0da88c4feb0c552d4eb7aeee08e /src | |
parent | b395836080a8e4da6a04d6d6f6c3aa68d0f33dd7 (diff) | |
download | bun-4c566f56c1412201f9de50804960cb0b79b7af4a.tar.gz bun-4c566f56c1412201f9de50804960cb0b79b7af4a.tar.zst bun-4c566f56c1412201f9de50804960cb0b79b7af4a.zip |
[install] fix `.bin` linking (#3067)
- causes intermittent `bun install` failures on `bun-types`
Diffstat (limited to 'src')
-rw-r--r-- | src/install/install.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/install/install.zig b/src/install/install.zig index 40c14d30f..209f2eb96 100644 --- a/src/install/install.zig +++ b/src/install/install.zig @@ -6591,10 +6591,10 @@ pub const PackageManager = struct { const bin = this.bins[package_id]; if (bin.tag != .none) { if (!this.has_created_bin) { + if (!this.options.global) { + this.root_node_modules_folder.dir.makeDirZ(".bin") catch {}; + } Bin.Linker.umask = C.umask(0); - if (!this.options.global) - this.node_modules_folder.dir.makeDirZ(".bin") catch {}; - this.has_created_bin = true; } |