fix(samd): wire platform_packages override (#677)#871
Conversation
Follows #664 / #681 / #870. SAMD is the half-migration left over from #870: `samd_core.rs` already grew `with_override`, but the call site in `install_samd_core` was still calling `SamdCores::new` unconditionally. Resolve `framework-arduino-samd-adafruit` at the SAM/SAMD outer call site (fbuild ships Adafruit's `ArduinoCore-samd`, so this is the matching PIO package name; PIO also has `framework-arduino-samd` for Arduino MKR/Zero and `framework-arduino-samd-seeed` for Seeeduino, but those aren't variants fbuild currently builds). Thread the override through `install_samd_core` alongside the existing `install_sam_core` override threading. Closes #677
|
Warning Review limit reached
Next review available in: 46 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Finishes the half-migration from #870.
samd_core.rsalready grewwith_overridethere, but the call site ininstall_samd_corewas still callingSamdCores::newunconditionally — #870's report flagged this as the lone skipped platform pending framework-name verification.Resolution: fbuild ships Adafruit's
ArduinoCore-samd, so the matching PlatformIO package name isframework-arduino-samd-adafruit(PIO also hasframework-arduino-samdfor Arduino MKR/Zero andframework-arduino-samd-seeedfor Seeeduino, neither of which fbuild currently builds). I resolve the override at the SAM/SAMD branching site alongside the existing__sam_ovrand thread it throughinstall_samd_core's newoverride_:Option<PackageOverride>parameter.Test plan
soldr cargo check -p fbuild-buildcleansoldr cargo clippy -p fbuild-build --all-targets -- -D warningscleansoldr cargo fmt -p fbuild-buildno-opCloses #677
🤖 Generated with Claude Code