mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Avoid symlinking RECORD
file (#227)
This is the one file that gets modified during installation. Hardlinking it is bad!
This commit is contained in:
parent
1d3ea242d4
commit
ffbf6b6c16
1 changed files with 6 additions and 2 deletions
|
@ -372,8 +372,12 @@ fn hardlink_wheel_files(
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy the file.
|
// Hardlink the file, unless it's the `RECORD` file, which we modify during installation.
|
||||||
fs::hard_link(entry.path(), &out_path)?;
|
if entry.path().ends_with("RECORD") {
|
||||||
|
fs::copy(entry.path(), &out_path)?;
|
||||||
|
} else {
|
||||||
|
fs::hard_link(entry.path(), &out_path)?;
|
||||||
|
}
|
||||||
|
|
||||||
count += 1;
|
count += 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue