Skip to content

Comments

Refresh lockfile when --refresh is provided#15991

Merged
zanieb merged 1 commit intomainfrom
charlie/refresh-lock
Sep 22, 2025
Merged

Refresh lockfile when --refresh is provided#15991
zanieb merged 1 commit intomainfrom
charlie/refresh-lock

Conversation

@charliermarsh
Copy link
Member

Summary

If you provide --refresh to uv lock, we'll now always resolve (even though it might return the same result).

@charliermarsh charliermarsh added enhancement New feature or improvement to existing functionality cli Related to the command line interface labels Sep 22, 2025
@charliermarsh charliermarsh marked this pull request as ready for review September 22, 2025 20:47
@zanieb zanieb merged commit aeb7ee0 into main Sep 22, 2025
98 checks passed
@zanieb zanieb deleted the charlie/refresh-lock branch September 22, 2025 20:58
zanieb added a commit that referenced this pull request Sep 22, 2025
zanieb added a commit that referenced this pull request Sep 22, 2025
This reverts commit aeb7ee0 from
#15991 since it will break `uv lock
--locked --refresh` otherwise.
charliermarsh added a commit that referenced this pull request Sep 22, 2025
## Summary

If you provide `--refresh` to `uv lock`, we'll now always resolve (even
though it might return the same result).
charliermarsh added a commit that referenced this pull request Sep 23, 2025
## Summary

If you provide `--refresh` to `uv lock`, we'll now always resolve (even
though it might return the same result).
charliermarsh added a commit that referenced this pull request Sep 23, 2025
## Summary

If you provide `--refresh` to `uv lock`, we'll now always resolve (even
though it might return the same result). This is also robust to
`--locked` such that `--refresh --locked` will only fail if the lockfile
changes.

Closes #15997.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Related to the command line interface enhancement New feature or improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants