You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately I cannot reproduce this issue consistently at the moment, but in the last days I got errors
Failed to deserialize cache entry
array had incorrect length, expected 5
when trying to uv pip install a directory in editable mode. I can perform a uv cache clean as a workaround, but I wonder, if there is any option to make these kind of errors warnings such that the corresponding cache entries can be ignored (maybe it should even be the default behaviour)?
I switch between the uv/python versions as noted below.
Platform
Ubuntu 20.04
Version
0.5.18, 0.5.25
Python version
3.10.14, 3.10.16, 3.9.21
The text was updated successfully, but these errors were encountered:
## Summary
If we fail to deserialize cached metadata in the cache, we should just
ignore it, rather than failing.
Ideally, this never happens. If it does, it means we missed a cache
version bump. But if it does happen, it should still be non-fatal.
Closes#11043.
Closes#11101.
## Test Plan
Prior to this PR, the following would fail:
- `uvx uv@0.5.25 venv --python 3.12 --cache-dir foo`
- `uvx uv@0.5.25 pip install ./scripts/packages/hatchling_dynamic
--no-deps --python 3.12 --cache-dir foo`
- `uvx uv@0.5.18 venv --python 3.12 --cache-dir foo`
- `uvx uv@0.5.18 pip install ./scripts/packages/hatchling_dynamic
--no-deps --python 3.12 --cache-dir foo`
We can't go back and fix 0.5.18, but this will prevent such regressions
in the future.
Summary
Unfortunately I cannot reproduce this issue consistently at the moment, but in the last days I got errors
when trying to
uv pip install
a directory in editable mode. I can perform auv cache clean
as a workaround, but I wonder, if there is any option to make these kind of errors warnings such that the corresponding cache entries can be ignored (maybe it should even be the default behaviour)?I switch between the uv/python versions as noted below.
Platform
Ubuntu 20.04
Version
0.5.18, 0.5.25
Python version
3.10.14, 3.10.16, 3.9.21
The text was updated successfully, but these errors were encountered: