diff options
author | 2022-07-11 18:01:00 +0530 | |
---|---|---|
committer | 2022-07-11 05:31:00 -0700 | |
commit | 2659febd1b74e8215ff7dbfb2d1b19f4b4f8a71a (patch) | |
tree | 9b2d411bc8992a71d7e74e948edf9938a4309fc9 /src | |
parent | 1405158dfb7e1e858d9fcc19812008cba672120c (diff) | |
download | bun-2659febd1b74e8215ff7dbfb2d1b19f4b4f8a71a.tar.gz bun-2659febd1b74e8215ff7dbfb2d1b19f4b4f8a71a.tar.zst bun-2659febd1b74e8215ff7dbfb2d1b19f4b4f8a71a.zip |
Fix: NotSameFileSystem at clonefile (#546)
Fixes issue #531
Before this, using 'bun install' on a directory in different filesystem
such as tmpfs (/tmp) would have caused "Error: NotSameFileSystem".
This commit fixes that by handling this error, and at end of function it
will fall back to use copyfile (same as --backend=copyfile)
Diffstat (limited to 'src')
-rw-r--r-- | src/install/install.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install/install.zig b/src/install/install.zig index 68b9c422a..f98ec8981 100644 --- a/src/install/install.zig +++ b/src/install/install.zig @@ -1061,7 +1061,7 @@ const PackageInstall = struct { return result; } else |err| { switch (err) { - error.NotSupported => { + error.NotSameFileSystem, error.NotSupported => { supported_method = .copyfile; }, error.FileNotFound => return Result{ |