mirror of https://github.com/astral-sh/uv
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
|
|
@ -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…
Reference in New Issue