mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-01 20:31:12 +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(),
|
root: src.to_path_buf(),
|
||||||
err,
|
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.
|
// TODO(konsti): This should be prettier.
|
||||||
let relative = entry
|
let relative = entry
|
||||||
.path()
|
.path()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue