Skip to content

Allow disabling exclude-newer-package during uv lock --check - #20239

Closed
zaniebot wants to merge 1 commit into
astral-sh:zb/lock-check-newer-timestampfrom
zaniebot:zb/lock-check-exclude-newer-package-false
Closed

zaniebot wants to merge 1 commit into
astral-sh:zb/lock-check-newer-timestampfrom
zaniebot:zb/lock-check-exclude-newer-package-false

Conversation

@zaniebot

@zaniebot zaniebot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Setting exclude-newer-package = false relaxes the cutoff for a package, just like moving an absolute cutoff later. Reuse the existing lockfile when a disabled override is added or replaces a package timestamp, while continuing to invalidate the lockfile when a cutoff becomes more restrictive.

Stacked on #19571.

@charliermarsh charliermarsh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me, this is similar to the user adding another [[tool.uv.index]]; in that case, we reuse the lockfile, since its still valid in the case of adding another index.

@zanieb

zanieb commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

This is intended to be the equivalent of moving the timestamp to a future date, i.e., removing a date is moving the timestamp to a perpetual future date.

@zanieb
zanieb force-pushed the zb/lock-check-newer-timestamp branch from 7e65ae7 to bbe8beb Compare September 3, 2026 20:29
@zaniebot
zaniebot force-pushed the zb/lock-check-exclude-newer-package-false branch from b9c4d3b to 60f8e04 Compare September 3, 2026 20:29
@zanieb
zanieb force-pushed the zb/lock-check-newer-timestamp branch from bbe8beb to 02d5326 Compare September 3, 2026 20:35
@zaniebot
zaniebot force-pushed the zb/lock-check-exclude-newer-package-false branch from 60f8e04 to 8b8ddcf Compare September 3, 2026 20:35
@zanieb
zanieb deleted the branch astral-sh:zb/lock-check-newer-timestamp September 3, 2026 20:42
@zanieb zanieb closed this Sep 3, 2026
zanieb added a commit that referenced this pull request Sep 3, 2026
)

Setting `exclude-newer-package = false` relaxes the cutoff for a
package, just like moving an absolute cutoff later. Reuse the existing
lockfile when a disabled override is added or replaces a package
timestamp, while continuing to invalidate the lockfile when a cutoff
becomes more restrictive.

Replaces #20239, which GitHub closed when #19571 merged and deleted its
base branch.

Co-authored-by: Zanie Blue <[email protected]>
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 this pull request may close these issues.

3 participants