Skip to content

Comments

Fix parent path handling with bare scripts#17965

Merged
konstin merged 1 commit intomainfrom
konsti/fix-empty-path
Feb 11, 2026
Merged

Fix parent path handling with bare scripts#17965
konstin merged 1 commit intomainfrom
konsti/fix-empty-path

Conversation

@konstin
Copy link
Member

@konstin konstin commented Feb 11, 2026

Rust gotcha: the parent of a bare filename (e.g. script.py) is Some(""), not None, and calling std::path::absolute on it fails.

Rust gotcha: the parent of a bare filename (e.g. script.py) is Some(""), not None, and calling std::path::absolute on it fails.
@konstin konstin requested a review from EliteTK February 11, 2026 10:16
@konstin konstin added bug Something isn't working preview Experimental behavior labels Feb 11, 2026
@konstin konstin enabled auto-merge (squash) February 11, 2026 10:41
@konstin konstin merged commit 18bcd47 into main Feb 11, 2026
102 of 104 checks passed
@konstin konstin deleted the konsti/fix-empty-path branch February 11, 2026 10:45
konstin added a commit that referenced this pull request Feb 11, 2026
For #17964 / #17965. Logging now gets initialized earlier to cover more of the startup procedure.

Also decrease the log level for lock acquisition from debug to trace, that happy path usually isn't relevant.

```
$ cargo run -q pip install tqdm -v
  DEBUG uv 0.10.2+7 (cc6e7a6 2026-02-11)
  DEBUG Searching for default Python interpreter in virtual environments
  DEBUG Found `cpython-3.14.0-linux-x86_64-gnu` at `/home/konsti/projects/uv/.venv/bin/python3` (virtual environment)
  DEBUG Using Python 3.14.0 environment at: .venv
  DEBUG Requirement satisfied: tqdm
  Audited 1 package in 2ms
```

```
$ cargo run -q pip install tqdm -v --preview
  DEBUG uv 0.10.2+7 (cc6e7a6 2026-02-11)
  DEBUG Preview is enabled
  DEBUG Searching for default Python interpreter in virtual environments
  DEBUG Found `cpython-3.14.0-linux-x86_64-gnu` at `/home/konsti/projects/uv/.venv/bin/python3` (virtual environment)
  DEBUG Using Python 3.14.0 environment at: .venv
  DEBUG Requirement satisfied: tqdm
  Audited 1 package in 2ms
```

```
$ cargo run -q pip install tqdm -v --preview-features target-workspace-discovery
  DEBUG uv 0.10.2+7 (cc6e7a6 2026-02-11)
  DEBUG Enabled preview features: target-workspace-discovery
  DEBUG Searching for default Python interpreter in virtual environments
  DEBUG Found `cpython-3.14.0-linux-x86_64-gnu` at `/home/konsti/projects/uv/.venv/bin/python3` (virtual environment)
  DEBUG Using Python 3.14.0 environment at: .venv
  DEBUG Requirement satisfied: tqdm
  Audited 1 package in 1ms
```
konstin added a commit that referenced this pull request Feb 11, 2026
For #17964 / #17965. Logging now gets initialized earlier to cover more of the startup procedure.

Also decrease the log level for lock acquisition from debug to trace, that happy path usually isn't relevant.

```
$ cargo run -q pip install tqdm -v
  DEBUG uv 0.10.2+7 (cc6e7a6 2026-02-11)
  DEBUG Searching for default Python interpreter in virtual environments
  DEBUG Found `cpython-3.14.0-linux-x86_64-gnu` at `/home/konsti/projects/uv/.venv/bin/python3` (virtual environment)
  DEBUG Using Python 3.14.0 environment at: .venv
  DEBUG Requirement satisfied: tqdm
  Audited 1 package in 2ms
```

```
$ cargo run -q pip install tqdm -v --preview
  DEBUG uv 0.10.2+7 (cc6e7a6 2026-02-11)
  DEBUG Preview is enabled
  DEBUG Searching for default Python interpreter in virtual environments
  DEBUG Found `cpython-3.14.0-linux-x86_64-gnu` at `/home/konsti/projects/uv/.venv/bin/python3` (virtual environment)
  DEBUG Using Python 3.14.0 environment at: .venv
  DEBUG Requirement satisfied: tqdm
  Audited 1 package in 2ms
```

```
$ cargo run -q pip install tqdm -v --preview-features target-workspace-discovery
  DEBUG uv 0.10.2+7 (cc6e7a6 2026-02-11)
  DEBUG Enabled preview features: target-workspace-discovery
  DEBUG Searching for default Python interpreter in virtual environments
  DEBUG Found `cpython-3.14.0-linux-x86_64-gnu` at `/home/konsti/projects/uv/.venv/bin/python3` (virtual environment)
  DEBUG Using Python 3.14.0 environment at: .venv
  DEBUG Requirement satisfied: tqdm
  Audited 1 package in 1ms
```
konstin added a commit that referenced this pull request Feb 12, 2026
For #17964 /
#17965. Logging now gets initialized
earlier to cover more of the startup procedure.

Also decrease the log level for lock acquisition from debug to trace,
that happy path usually isn't relevant.

```
$ cargo run -q pip install tqdm -v
  DEBUG uv 0.10.2+7 (cc6e7a6 2026-02-11)
  DEBUG Searching for default Python interpreter in virtual environments
  DEBUG Found `cpython-3.14.0-linux-x86_64-gnu` at `/home/konsti/projects/uv/.venv/bin/python3` (virtual environment)
  DEBUG Using Python 3.14.0 environment at: .venv
  DEBUG Requirement satisfied: tqdm
  Audited 1 package in 2ms
```

```
$ cargo run -q pip install tqdm -v --preview
  DEBUG uv 0.10.2+7 (cc6e7a6 2026-02-11)
  DEBUG All preview features are enabled
  DEBUG Searching for default Python interpreter in virtual environments
  DEBUG Found `cpython-3.14.0-linux-x86_64-gnu` at `/home/konsti/projects/uv/.venv/bin/python3` (virtual environment)
  DEBUG Using Python 3.14.0 environment at: .venv
  DEBUG Requirement satisfied: tqdm
  Audited 1 package in 2ms
```

```
$ cargo run -q pip install tqdm -v --preview-features target-workspace-discovery
  DEBUG uv 0.10.2+7 (cc6e7a6 2026-02-11)
  DEBUG The following preview features are enabled: target-workspace-discovery
  DEBUG Searching for default Python interpreter in virtual environments
  DEBUG Found `cpython-3.14.0-linux-x86_64-gnu` at `/home/konsti/projects/uv/.venv/bin/python3` (virtual environment)
  DEBUG Using Python 3.14.0 environment at: .venv
  DEBUG Requirement satisfied: tqdm
  Audited 1 package in 1ms
```
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 preview Experimental behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants