aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/install/install.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/install/install.zig b/src/install/install.zig
index 1e55d7807..722d46be1 100644
--- a/src/install/install.zig
+++ b/src/install/install.zig
@@ -1070,6 +1070,7 @@ const PackageInstall = struct {
)) {
0 => {},
else => |errno| switch (std.os.errno(errno)) {
+ .XDEV => return error.NotSupported, // not same file system
.OPNOTSUPP => return error.NotSupported,
.NOENT => return error.FileNotFound,
// sometimes the downlowded npm package has already node_modules with it, so just ignore exist error here
@@ -1128,6 +1129,7 @@ const PackageInstall = struct {
)) {
0 => .{ .success = {} },
else => |errno| switch (std.os.errno(errno)) {
+ .XDEV => error.NotSupported, // not same file system
.OPNOTSUPP => error.NotSupported,
.NOENT => error.FileNotFound,
// We first try to delete the directory