fix(package-manager): add missing TarballResolution.path in installability test fixture#455
Conversation
… fixture Landrace between #439 (installability tests fixture) and #451 (added `path: Option<String>` to `TarballResolution`). Both merged green against their own bases but main's tip won't compile: error[E0063]: missing field `path` in initializer of `TarballResolution` --> crates/package-manager/src/installability/tests.rs:56:49 Add the missing field with `path: None` so the struct literal matches the current `TarballResolution` shape.
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #455 +/- ##
==========================================
- Coverage 87.20% 87.20% -0.01%
==========================================
Files 105 108 +3
Lines 8493 8805 +312
==========================================
+ Hits 7406 7678 +272
- Misses 1087 1127 +40 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Micro-Benchmark ResultsLinux |
Summary
Fixes the CI break on
main. Landrace between two recently-merged PRs:crates/package-manager/src/installability/tests.rswith aTarballResolution { integrity, tarball, git_hosted }struct literal.pnpm-lock.yaml(frozen-lockfile) #436 §C, git-hosted tarballs viapreparePackage+packlist) added a new fieldpath: Option<String>toTarballResolutionto mirror upstream'sTarballResolution.path.Both PRs were green against their own bases, but main's tip — where they're both applied — doesn't compile:
Affected CI jobs on
main:Lint and Test (macos-latest),Lint and Test (ubuntu-latest),Lint and Test (windows-latest),Dylint— all hitting the samecargo test --no-runfailure.Fix: add
path: Noneto the struct literal. The installability check ignores the resolution shape (per the existing comment in the test fixture), soNoneis the truthful value.Test plan
cargo nextest run -p pacquet-package-manager --locked installability— all 11 tests pass.Written by an agent (Claude Code, claude-opus-4-7).