From 583414f2be6aa68dce9e98ad21a239fce4e26b25 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 28 Jan 2026 10:11:27 -0600 Subject: [PATCH] Add a reflink alias for the "clone" link mode (#17724) Closes https://github.com/astral-sh/uv/issues/17722 --- crates/uv-install-wheel/src/linker.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/uv-install-wheel/src/linker.rs b/crates/uv-install-wheel/src/linker.rs index cd422d06d..699947cb0 100644 --- a/crates/uv-install-wheel/src/linker.rs +++ b/crates/uv-install-wheel/src/linker.rs @@ -250,7 +250,9 @@ impl Locks { #[cfg_attr(feature = "clap", derive(clap::ValueEnum))] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum LinkMode { - /// Clone (i.e., copy-on-write) packages from the wheel into the `site-packages` directory. + /// Clone (i.e., copy-on-write or reflink) packages from the wheel into the `site-packages` directory. + #[serde(alias = "reflink")] + #[cfg_attr(feature = "clap", value(alias = "reflink"))] Clone, /// Copy packages from the wheel into the `site-packages` directory. Copy,