diff options
author | 2022-07-12 00:20:16 -0700 | |
---|---|---|
committer | 2022-07-12 00:20:46 -0700 | |
commit | 46e8717e6c85f52c261f324767bc754809c1fdee (patch) | |
tree | 7fa0d6a24bac450d3f27f788037e0c90967bfef9 | |
parent | e85f8011d54b4b5cb1b20e51aaf2b5bb02530345 (diff) | |
download | bun-46e8717e6c85f52c261f324767bc754809c1fdee.tar.gz bun-46e8717e6c85f52c261f324767bc754809c1fdee.tar.zst bun-46e8717e6c85f52c261f324767bc754809c1fdee.zip |
[bun install] Fix NotSameFileSystem error (for real this time)
-rw-r--r-- | src/install/install.zig | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/install/install.zig b/src/install/install.zig index 68b9c422a..3954e1410 100644 --- a/src/install/install.zig +++ b/src/install/install.zig @@ -1034,8 +1034,11 @@ const PackageInstall = struct { this.file_count = FileCopier.copy( subdir, &walker_, - ) catch |err| return Result{ - .fail = .{ .err = err, .step = .copying_files }, + ) catch |err| switch (err) { + error.NotSameFileSystem => return err, + else => return Result{ + .fail = .{ .err = err, .step = .copying_files }, + }, }; return Result{ @@ -1098,7 +1101,7 @@ const PackageInstall = struct { return result; } else |err| { switch (err) { - error.NotSameFileSystem, error.NotSupported => { + error.NotSameFileSystem => { supported_method = .copyfile; }, error.FileNotFound => return Result{ |