mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
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)
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user