Skip to content

Dynamic version is removed from lockfile occasionally #11047

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

Closed
charliermarsh opened this issue Jan 29, 2025 · 0 comments · Fixed by #11046
Closed

Dynamic version is removed from lockfile occasionally #11047

charliermarsh opened this issue Jan 29, 2025 · 0 comments · Fixed by #11046
Labels
bug Something isn't working

Comments

@charliermarsh
Copy link
Member

@charliermarsh Use this repo: https://github.com/apollo13/uv-bug

Follow this to the letter (I am not sure if you can repro if you do anything different):

  • uv cache clean
  • uv lock and observe that git status shows no changes
  • uv sync
  • rm -rf uv.lock .venv
  • uv lock
  • Run git diff and see the version written into the lock file (shouldn't be)
  • uv cache clean
  • rm -rf uv.lock .venv
  • uv lock (No version written -> okay)

Originally posted by @apollo13 in #7533

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 a pull request may close this issue.

1 participant