Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rye sync --update-all should imply UV_NO_CACHE=true #1128

Open
duijf opened this issue May 31, 2024 · 1 comment · May be fixed by #1148
Open

rye sync --update-all should imply UV_NO_CACHE=true #1128

duijf opened this issue May 31, 2024 · 1 comment · May be fixed by #1148

Comments

@duijf
Copy link

duijf commented May 31, 2024

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:

  1. Run rye sync on a pyproject.toml with a dependency on libfoo
  2. Publish a new version of libfoo to PyPI
  3. Run rye 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:

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.

Disabling the uv cache should be implied if the user passes --update-all.

Version Info

$ rye --version
rye 0.34.0
commit: 0.34.0 (1980-01-01)
platform: macos (aarch64)
self-python: [email protected]
symlink support: true
uv enabled: true

Stacktrace

No response

@nrbnlulu
Copy link

nrbnlulu commented Jun 3, 2024

#1080
related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants