Skip to content

fix: check whether the path of overrides link is correct#10467

Open
btea wants to merge 5 commits into
pnpm:mainfrom
btea:fix/check-the-overrides-link-is-correct
Open

fix: check whether the path of overrides link is correct#10467
btea wants to merge 5 commits into
pnpm:mainfrom
btea:fix/check-the-overrides-link-is-correct

Conversation

@btea

@btea btea commented Jan 16, 2026

Copy link
Copy Markdown
Member

close #10315

@btea btea requested a review from zkochan as a code owner January 16, 2026 07:14
Copilot AI review requested due to automatic review settings January 16, 2026 07:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds validation for override link paths in the pnpm configuration to check if the linked paths actually exist. It addresses issue #10315 by warning users when they specify link: or file: overrides that point to non-existent paths.

Changes:

  • Added checkOverrides function to validate link and file path overrides
  • Added test coverage for both relative and absolute path validation
  • Added changeset documenting the new feature

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
config/config/src/getOptionsFromRootManifest.ts Implements path validation for link/file overrides using new checkOverrides function
config/config/test/getOptionsFromRootManifest.test.ts Adds test cases for relative and absolute path override validation
.changeset/thirty-toes-drive.md Documents the change as a minor version bump

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread config/config/src/getOptionsFromRootManifest.ts Outdated
Comment thread config/config/src/getOptionsFromRootManifest.ts Outdated
Comment thread config/config/test/getOptionsFromRootManifest.test.ts Outdated
Comment thread config/config/test/getOptionsFromRootManifest.test.ts Outdated
Comment thread config/config/test/getOptionsFromRootManifest.test.ts
@zkochan

zkochan commented Jan 16, 2026

Copy link
Copy Markdown
Member

I don't think it fixes what the referenced issue describes. The referenced issue is about the key in "overrides" that doesn't match anything during installation.

@btea

btea commented Jan 16, 2026

Copy link
Copy Markdown
Member Author

Uh, that's right, I misread it.

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.

Warn when override doesn't match anything

3 participants