Skip to content

Fix uv-test in cargo-install#17954

Merged
zanieb merged 1 commit intomainfrom
konsti/uv-test-dep
Feb 10, 2026
Merged

Fix uv-test in cargo-install#17954
zanieb merged 1 commit intomainfrom
konsti/uv-test-dep

Conversation

@konstin
Copy link
Member

@konstin konstin commented Feb 10, 2026

The uv crate has uv-test as dev-dependency. We want that by default, uv runs tests with uv-test/git, so it's a default feature in uv. The problem is that uv-test is only a dev dependency, which gets stripped by cargo install, and cargo install fails with a missing crate error.

As workaround, we make uv-test a regular optional dependency. It's never used as a regular dependency, but it allows using uv-test?/git as default feature.

Closes #17908
Fixes #17955

The uv crate has uv-test as dev-dependency. We want that by default,
uv runs tests with `uv-test/git`, so it's a default feature in uv. The
problem is that uv-test is only a dev dependency, which gets stripped by
`cargo install`, and `cargo install` fails with a missing crate error.

As workaround, we make `uv-test` a regular optional dependency. It's never
used as a regular dependency, but it allows using `uv-test?/git` as default
feature.
@chenrui333
Copy link

@konstin thanks for the quick turnaround!

@zanieb
Copy link
Member

zanieb commented Feb 10, 2026

Ah sorry I had this locally at c01457d and hadn't opened a pull.

@zanieb zanieb merged commit 976a368 into main Feb 10, 2026
196 of 198 checks passed
@zanieb zanieb deleted the konsti/uv-test-dep branch February 10, 2026 14:05
@konstin konstin added bug Something isn't working and removed internal A refactor or improvement that is not user-facing labels Feb 10, 2026
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Feb 15, 2026
This MR contains the following updates:

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

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.2`](https://github.com/astral-sh/uv/blob/HEAD/CHANGELOG.md#0102)

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

Released on 2026-02-10.

##### Enhancements

- Deprecate unexpected ZIP compression methods ([#&#8203;17946](astral-sh/uv#17946))

##### Bug fixes

- Fix `cargo-install` failing due to missing `uv-test` dependency ([#&#8203;17954](astral-sh/uv#17954))

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

[Compare Source](astral-sh/uv@0.10.0...0.10.1)

Released on 2026-02-10.

##### Enhancements

- Don't panic on metadata read errors ([#&#8203;17904](astral-sh/uv#17904))
- Skip empty workspace members instead of failing ([#&#8203;17901](astral-sh/uv#17901))
- Don't fail creating a read-only `sdist-vX/.git` if it already exists ([#&#8203;17825](astral-sh/uv#17825))

##### Documentation

- Suggest `uv python update-shell` over `uv tool update-shell` in Python docs ([#&#8203;17941](astral-sh/uv#17941))

</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:eyJjcmVhdGVkSW5WZXIiOiI0Mi45Ny4zIiwidXBkYXRlZEluVmVyIjoiNDIuOTcuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6OnBhdGNoIl19-->
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.

cargo install --path=crates/uv fails for 0.10.1: missing dependency uv-test

3 participants