mirror of https://github.com/astral-sh/uv
Add env var to `--link-mode=copy` warning (#6103)
## Summary Closes https://github.com/astral-sh/uv/issues/6101. ## Test Plan 
This commit is contained in:
parent
76e324857b
commit
7551097a17
|
|
@ -438,7 +438,7 @@ fn clone_recursive(
|
||||||
} else {
|
} else {
|
||||||
synchronized_copy(&from, &to, locks)?;
|
synchronized_copy(&from, &to, locks)?;
|
||||||
}
|
}
|
||||||
warn_user_once!("Failed to clone files; falling back to full copy. This may lead to degraded performance. If this is intentional, use `--link-mode=copy` to suppress this warning.\n\nhint: If the cache and target directories are on different filesystems, reflinking may not be supported.");
|
warn_user_once!("Failed to clone files; falling back to full copy. This may lead to degraded performance.\n If the cache and target directories are on different filesystems, reflinking may not be supported.\n If this is intentional, set `UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -563,7 +563,7 @@ fn hardlink_wheel_files(
|
||||||
}
|
}
|
||||||
Attempt::UseCopyFallback => {
|
Attempt::UseCopyFallback => {
|
||||||
synchronized_copy(path, &out_path, locks)?;
|
synchronized_copy(path, &out_path, locks)?;
|
||||||
warn_user_once!("Failed to hardlink files; falling back to full copy. This may lead to degraded performance. If this is intentional, use `--link-mode=copy` to suppress this warning.\n\nhint: If the cache and target directories are on different filesystems, hardlinking may not be supported.");
|
warn_user_once!("Failed to hardlink files; falling back to full copy. This may lead to degraded performance.\n If the cache and target directories are on different filesystems, hardlinking may not be supported.\n If this is intentional, set `UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -659,7 +659,7 @@ fn symlink_wheel_files(
|
||||||
}
|
}
|
||||||
Attempt::UseCopyFallback => {
|
Attempt::UseCopyFallback => {
|
||||||
synchronized_copy(path, &out_path, locks)?;
|
synchronized_copy(path, &out_path, locks)?;
|
||||||
warn_user_once!("Failed to symlink files; falling back to full copy. This may lead to degraded performance. If this is intentional, use `--link-mode=copy` to suppress this warning.\n\nhint: If the cache and target directories are on different filesystems, symlinking may not be supported.");
|
warn_user_once!("Failed to symlink files; falling back to full copy. This may lead to degraded performance.\n If the cache and target directories are on different filesystems, symlinking may not be supported.\n If this is intentional, set `UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue