Skip to content

Conversation

@charliermarsh
Copy link
Member

Summary

I noticed that these paths aren't returning the cache information, so if you install through these paths, we actually don't write uv_cache.json at all. I'm not sure how a user would actually end up here, because assuming there are no bugs, we don't really ever use this path? The install plan indexes the cached wheels and marks the wheel as installed, which means it's typically a mistake if we're asking the DistributionDatabase for a wheel that's already available in the cache... But I did verify that if I skip the install plan's cache lookup, we write a wheel without uv_cache.json, so this is definitely more correct.

@charliermarsh charliermarsh added the bug Something isn't working label Aug 14, 2025
@charliermarsh charliermarsh marked this pull request as ready for review August 14, 2025 11:48
}

#[must_use]
pub(crate) fn with_hashes(mut self, hashes: HashDigests) -> Self {
Copy link
Member Author

Choose a reason for hiding this comment

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

Instead of using these with_ methods, I split up the struct to make the fields required (which makes this mistake much harder to do).

@charliermarsh charliermarsh merged commit 7cdb2d0 into main Aug 14, 2025
95 checks passed
@charliermarsh charliermarsh deleted the charlie/cache-info branch August 14, 2025 12:05
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Aug 16, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [astral-sh/uv](https://github.com/astral-sh/uv) | patch | `0.8.9` -> `0.8.11` |

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 (astral-sh/uv)</summary>

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

[Compare Source](astral-sh/uv@0.8.10...0.8.11)

##### Python

- Add Python 3.14.0rc2
- Update Pyodide to 0.28.1

##### Enhancements

- Add Debian 13 trixie to published Docker images ([#&#8203;15269](astral-sh/uv#15269))
- Add `extra-build-dependencies` hint for any missing module on build failure ([#&#8203;15252](astral-sh/uv#15252))
- Make 'v' prefix cyan in overlap warnings ([#&#8203;15259](astral-sh/uv#15259))

##### Bug fixes

- Fix missing uv version in extended Docker image tags ([#&#8203;15263](astral-sh/uv#15263))
- Persist cache info when re-installing cached wheels ([#&#8203;15274](astral-sh/uv#15274))

##### Rust API

- Allow passing custom `reqwest` clients to `RegistryClient` ([#&#8203;15281](astral-sh/uv#15281))

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

[Compare Source](astral-sh/uv@0.8.9...0.8.10)

##### Python

- Add support for installing Pyodide versions ([#&#8203;14518](astral-sh/uv#14518))

##### Enhancements

- Allow Python requests with missing segments, e.g., just `aarch64` ([#&#8203;14399](astral-sh/uv#14399))

##### Preview

- Move warnings for conflicting modules into preview ([#&#8203;15253](astral-sh/uv#15253))

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

2 participants