Skip to content

Support lockfiles without package.metadata - #20625

Closed
konstin wants to merge 3 commits into
konsti/shared-lock-dependency-refactorsfrom
konsti/smaller-lockfile-with-smarter-validation
Closed

konstin wants to merge 3 commits into
konsti/shared-lock-dependency-refactorsfrom
konsti/smaller-lockfile-with-smarter-validation

Conversation

@konstin

@konstin konstin commented Jul 22, 2026 •

Copy link
Copy Markdown
Member

This is currently more about hitting all problems than about good code.

The main problem is that some of the current behavior is arguably wrong, but we have to reproduce it so it matches the existing lockfiles.

Stacked on #20637, which first extracts the behavior-neutral locked-dependency construction paths. This PR then adds metadata-free validation, including overrides, excludes, requested extras, explicit indexes, and conflict coverage. Dependency-section selection is shared with lock construction to keep their semantics aligned; static metadata-backed packages no longer perform unnecessary debug-only requirement flattening.

@codspeed

codspeed Bot commented Jul 22, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 21 untouched benchmarks
⏩ 6 skipped benchmarks1


Comparing konsti/smaller-lockfile-with-smarter-validation (b5eba32) with konsti/shared-lock-dependency-refactors (5faa94b)

Open in CodSpeed

Footnotes

  1. 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@astral-sh-bot

This comment has been minimized.

@konstin
konstin force-pushed the konsti/smaller-lockfile-with-smarter-validation branch from 28894ae to 1622983 Compare July 23, 2026 07:49
@konstin
konstin force-pushed the konsti/smaller-lockfile-with-smarter-validation branch from 1622983 to a948267 Compare July 23, 2026 09:28
@konstin
konstin changed the base branch from main to konsti/shared-lock-dependency-refactors July 23, 2026 09:29

This branch was previously deployed

1 inactive deployment
automations — b5eba325 Deployed Jul 23, 2026 by konstin via review / security review #43080
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.

2 participants