-
-
Notifications
You must be signed in to change notification settings - Fork 794
fix(plugins): normalize relative plugin paths during config loading #8524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(plugins): normalize relative plugin paths during config loading #8524
Conversation
π¦ Changeset detectedLatest commit: e127306 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughNormalises plugin paths after configuration Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touchesβ Passed checks (2 passed)
β¨ Finishing touches
π§ͺ Generate unit tests (beta)
π Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro β Files ignored due to path filters (1)
π Files selected for processing (5)
π§ Files skipped from review as they are similar to previous changes (2)
π§° Additional context usedπ Path-based instructions (3)**/Cargo.tomlπ CodeRabbit inference engine (CONTRIBUTING.md)
Files:
crates/**/*.rsπ CodeRabbit inference engine (CONTRIBUTING.md)
Files:
.changeset/*.mdπ CodeRabbit inference engine (CONTRIBUTING.md)
Files:
π§ Learnings (21)π Learning: 2025-11-24T18:05:20.371ZApplied to files:
π Learning: 2025-12-12T10:11:05.564ZApplied to files:
π Learning: 2025-11-24T18:06:12.048ZApplied to files:
π Learning: 2025-12-19T12:53:30.399ZApplied to files:
π Learning: 2025-12-19T12:53:30.399ZApplied to files:
π Learning: 2025-12-19T12:53:30.399ZApplied to files:
π Learning: 2025-11-24T18:05:42.356ZApplied to files:
π Learning: 2025-12-19T12:53:30.399ZApplied to files:
π Learning: 2025-12-19T12:53:30.399ZApplied to files:
π Learning: 2025-11-24T18:05:42.356ZApplied to files:
π Learning: 2025-12-19T12:53:30.399ZApplied to files:
π Learning: 2025-11-24T18:06:12.048ZApplied to files:
π Learning: 2025-12-19T12:53:30.399ZApplied to files:
π Learning: 2025-12-19T12:53:30.399ZApplied to files:
π Learning: 2025-11-24T18:04:57.309ZApplied to files:
π Learning: 2025-12-19T12:53:30.399ZApplied to files:
π Learning: 2025-12-19T12:53:30.399ZApplied to files:
π Learning: 2025-11-24T18:06:03.545ZApplied to files:
π Learning: 2025-12-12T10:11:05.564ZApplied to files:
π Learning: 2025-08-05T14:43:29.581ZApplied to files:
π Learning: 2025-12-12T10:11:05.564ZApplied to files:
β° Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
π Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
e4d063a to
e127306
Compare
Summary
Fixes #8488.
In monorepos where nested configurations use
extends: "//", relative plugin paths declared in the root configuration could be resolved relative to the child configuration directory, causing plugin loading to fail with "Cannot read file." This is related to theextends: "//"behavior discussed in #8360.This PR normalizes plugin paths relative to the directory of the configuration file that declares them so that merged configurations keep consistent plugin path semantics.
AI disclosure: I used AI assistance (Cursor / GPT) to explore the codebase and draft the fix and tests.
Test Plan
extends: "//".Commands run:
cargo test -p biome_plugin_loadercargo test -p biome_cli --test main -- cases::monorepocargo test -p biome_servicecargo fmt --checkcargo clippy -p biome_service -p biome_cli -p biome_plugin_loader -- -D warningsDocs
No documentation changes are needed (bugfix only).