Use sentinel timestamp for relative exclude-newer-package spans#19101
Merged
zanieb merged 3 commits intoastral-sh:mainfrom Apr 21, 2026
Merged
Use sentinel timestamp for relative exclude-newer-package spans#19101zanieb merged 3 commits intoastral-sh:mainfrom
zanieb merged 3 commits intoastral-sh:mainfrom
Conversation
When a relative span (e.g. `3 weeks`) is configured for either the global `exclude-newer` or a package-specific `exclude-newer-package` entry, write the sentinel `0001-01-01T00:00:00Z` to the lockfile instead of the computed cutoff. The span is what actually drives resolution, so storing a fixed placeholder keeps the lockfile stable across `uv lock` runs even as wall-clock time advances. Also fix the `ExcludeNewer::compare` logic so a relative-timestamp-only change at the global level doesn't mask a genuine per-package change (and vice versa across packages). Fixes astral-sh#19089. https://claude.ai/code/session_01P4E1CZTWs99ozYvtNSUUaM
zanieb
commented
Apr 21, 2026
zanieb
commented
Apr 21, 2026
445fe9e to
20e9ad1
Compare
zsol
approved these changes
Apr 21, 2026
kdeldycke
added a commit
to kdeldycke/repomatic
that referenced
this pull request
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #19089
Applies the same change as #19022 to per-package exclude-newer spans.