Open duijf opened 6 months ago
rye sync --update-all doesn't always update to the latest release.
rye sync --update-all
It's a little hard to come up with an exact repro, since this depends on the contents of your uv cache. Roughly:
uv
rye sync
pyproject.toml
libfoo
The new version of libfoo is recorded in the lockfile.
I get output like this and the lockfiles are unchanged:
Reusing already existing virtualenv Generating production lockfile: /path/to/project/requirements.lock Generating dev lockfile: /path/to/project/requirements-dev.lock Installing dependencies Audited 60 packages in 1ms Done!
If I disable the UV cache with UV_NO_CACHE=true rye sync -f --update-all, the lockfiles are updated as I'd expect.
UV_NO_CACHE=true rye sync -f --update-all
Disabling the uv cache should be implied if the user passes --update-all.
--update-all
$ rye --version rye 0.34.0 commit: 0.34.0 (1980-01-01) platform: macos (aarch64) self-python: cpython@3.12.3 symlink support: true uv enabled: true
No response
related
Just tried out "rye sync -f --update-all" and it works for me (without the "UV_NO_CACHE=true" prefix). All packages have been forced to update to latest.
Steps to Reproduce
rye sync --update-all
doesn't always update to the latest release.It's a little hard to come up with an exact repro, since this depends on the contents of your
uv
cache. Roughly:rye sync
on apyproject.toml
with a dependency onlibfoo
libfoo
to PyPIrye sync --update-all
Expected Result
The new version of
libfoo
is recorded in the lockfile.Actual Result
I get output like this and the lockfiles are unchanged:
If I disable the UV cache with
UV_NO_CACHE=true rye sync -f --update-all
, the lockfiles are updated as I'd expect.Disabling the
uv
cache should be implied if the user passes--update-all
.Version Info
Stacktrace
No response