mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-27 10:26:29 +00:00
Avoid creating duplicate directory entries in built wheels (#12206)
## Summary This is a bug in the build backend revealed via https://github.com/astral-sh/uv/pull/12196. (By upgrading, `zip` now errors on duplicate entries.)
This commit is contained in:
parent
b689e34418
commit
9785266e29
1 changed files with 8 additions and 0 deletions
|
|
@ -506,6 +506,14 @@ fn wheel_subdir_from_globs(
|
|||
root: src.to_path_buf(),
|
||||
err,
|
||||
})?;
|
||||
|
||||
// Skip the root path, which is already included as `target` prior to the loop.
|
||||
// (If `entry.path() == src`, then `relative` is empty, and `relative_licenses` is
|
||||
// `target`.)
|
||||
if entry.path() == src {
|
||||
continue;
|
||||
}
|
||||
|
||||
// TODO(konsti): This should be prettier.
|
||||
let relative = entry
|
||||
.path()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue