From 2659febd1b74e8215ff7dbfb2d1b19f4b4f8a71a Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Mon, 11 Jul 2022 18:01:00 +0530 Subject: [PATCH] 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) --- src/install/install.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install/install.zig b/src/install/install.zig index 68b9c422a6..f98ec89814 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{