Skip to content

Fix handling of --allow-existing with minor version links on Windows#17978

Merged
zanieb merged 2 commits intomainfrom
17963-uv-venv-allow-existing-regression-in-0-10-0
Feb 12, 2026
Merged

Fix handling of --allow-existing with minor version links on Windows#17978
zanieb merged 2 commits intomainfrom
17963-uv-venv-allow-existing-regression-in-0-10-0

Conversation

@zanieb
Copy link
Member

@zanieb zanieb commented Feb 11, 2026

Closes #17963

@zanieb zanieb added the bug Something isn't working label Feb 11, 2026
@zanieb zanieb force-pushed the 17963-uv-venv-allow-existing-regression-in-0-10-0 branch from 0a01d3d to 55c4ee5 Compare February 11, 2026 23:48
@zanieb zanieb changed the title Add a regression test for #17963 Fix handling of --allow-existing with minor version links on Windows Feb 11, 2026
@zanieb zanieb marked this pull request as ready for review February 12, 2026 01:16
pub fn replace_link_to_executable(link: &Path, executable: &Path) -> Result<(), Error> {
let link_parent = link.parent().ok_or(Error::NoExecutableDirectory)?;
fs_err::create_dir_all(link_parent).map_err(|err| Error::ExecutableDirectory {
to: link_parent.to_path_buf(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fs_err error should already include the path, we don't need to repeat it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a critique of an existing code pattern — I'm happy to fix it separately, but I didn't introduce that error variant here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, I didn't realize this was pre-existing.

@zanieb zanieb merged commit 33a8132 into main Feb 12, 2026
53 checks passed
@zanieb zanieb deleted the 17963-uv-venv-allow-existing-regression-in-0-10-0 branch February 12, 2026 17:30
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Feb 17, 2026
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [uv](https://github.com/astral-sh/uv) | patch | `0.10.2` → `0.10.3` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>astral-sh/uv (uv)</summary>

### [`v0.10.3`](https://github.com/astral-sh/uv/blob/HEAD/CHANGELOG.md#0103)

[Compare Source](astral-sh/uv@0.10.2...0.10.3)

Released on 2026-02-16.

##### Python

- Add CPython 3.15.0a6

##### Enhancements

- Don't open file locks for writing ([#&#8203;17956](astral-sh/uv#17956))
- Make Windows trampoline error messages consistent with uv proper ([#&#8203;17969](astral-sh/uv#17969))
- Log which preview features are enabled ([#&#8203;17968](astral-sh/uv#17968))

##### Preview features

- Add support for ruff version constraints and `exclude-newer` in `uv format` ([#&#8203;17651](astral-sh/uv#17651))
- Fix script path handling when `target-workspace-discovery` is enabled ([#&#8203;17965](astral-sh/uv#17965))
- Use version constraints to select the default ruff version used by `uv format` ([#&#8203;17977](astral-sh/uv#17977))

##### Bug fixes

- Avoid matching managed Python versions by prefixes, e.g. don't match CPython 3.10 when `cpython-3.1` is specified ([#&#8203;17972](astral-sh/uv#17972))
- Fix handling of `--allow-existing` with minor version links on Windows ([#&#8203;17978](astral-sh/uv#17978))
- Fix panic when encountering unmanaged workspace members ([#&#8203;17974](astral-sh/uv#17974))
- Improve accuracy of request timing ([#&#8203;18007](astral-sh/uv#18007))
- Reject `u64::MAX` in version segments to prevent overflow ([#&#8203;17985](astral-sh/uv#17985))

##### Documentation

- Reference Debian Trixie instead of Bookworm ([#&#8203;17991](astral-sh/uv#17991))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNS4yIiwidXBkYXRlZEluVmVyIjoiNDMuMTUuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6OnBhdGNoIl19-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uv venv --allow-existing regression in 0.10.0

2 participants