Skip to content

filter [exclude-newer-package] lockfile entries to resolved packages#19198

Open
Aditya-PS-05 wants to merge 1 commit intoastral-sh:mainfrom
Aditya-PS-05:fix/exclude-newer-package-lockfile-leak
Open

filter [exclude-newer-package] lockfile entries to resolved packages#19198
Aditya-PS-05 wants to merge 1 commit intoastral-sh:mainfrom
Aditya-PS-05:fix/exclude-newer-package-lockfile-leak

Conversation

@Aditya-PS-05
Copy link
Copy Markdown
Contributor

Closes #19196.

Issue: [exclude-newer-package] entries from a user-level uv.toml were merged into the project's uv.lock under [options.exclude-newer-package] even though those packages aren't in the resolution. This broke uv sync --locked in CI.

Fix: Filter the per-package map that written to the lockfile to the names that appear in self.packages, and skip emitting an empty [options.exclude-newer-package] table when every entry is filtered out. In-memory resolver behavior is unchanged.

@zanieb zanieb self-assigned this Apr 28, 2026
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.

Configuration merging produces unusable uv.lock files

2 participants