Repository navigation
Conversation
📝 WalkthroughWalkthroughGit-hosted dependency parity is expanded across aliasless adds, lockfile reuse, install version reporting, fetcher error handling, fixture registries, Git command construction, and end-to-end coverage. ChangesGit-hosted dependency parity
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant AddWorkflow
participant GitResolver
participant LockfileReuse
participant SymlinkDirectDependencies
AddWorkflow->>GitResolver: resolve aliasless Git dependency
GitResolver-->>AddWorkflow: return package name and normalized specifier
AddWorkflow->>LockfileReuse: reuse equivalent locked Git resolution
LockfileReuse-->>SymlinkDirectDependencies: provide package metadata
SymlinkDirectDependencies-->>AddWorkflow: emit installed package version
Possibly related issues
Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
PR Summary by Qodopacquet: complete Git dependency parity (alias-less add, lock reuse, log versions)
AI Description
Diagram
High-Level Assessment
Files changed (20)
|
Micro-Benchmark ResultsLinux |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Confidence Score: 5/5The change is safe to merge: it adds well-tested git-dependency features with no regressions to the registry or lockfile paths. All five previously-stubbed known-failure test cases are now replaced by real integration tests that pass. The lock-reuse path is tested with semver and git fixtures. The No files require special attention. Reviews (5): Last reviewed commit: "test(pacquet): move git runner tests" | Re-trigger Greptile |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #13169 +/- ##
==========================================
+ Coverage 86.44% 86.50% +0.05%
==========================================
Files 508 509 +1
Lines 85086 85775 +689
==========================================
+ Hits 73555 74196 +641
- Misses 11531 11579 +48 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit ed9f7c6 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Resolve alias-less Git selectors before updating manifests. Retain locked Git commits during unrelated changes and use lockfile metadata for root log versions. Add per-run registry fixture substitution and port the remaining Git-hosted dependency coverage. Related to #13167
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit 957d2f5 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
pnpm/crates/resolving-deps-resolver/src/lockfile_reuse/tests.rs (1)
96-115: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd coverage for the normalized-equivalence and git-hosted-tarball reuse paths.
Both new tests use exact-string-match specifiers and only the
LockfileResolution::Gitvariant, so thegit_specifiers_are_equivalentbranch inreusable_importer_dep(lockfile_reuse.rs line 108) and theTarball { git_hosted: Some(true) }arms in bothreusable_importer_depandsynthesize_reused_result(lockfile_reuse.rs lines 101-105, 172) remain unexercised — matching the Codecov patch-coverage gap called out in the PR description.Consider adding:
- A reuse test where the manifest specifier is a syntactically different but equivalent git form (e.g. shorthand vs. full URL) than the locked one, asserting reuse still occurs.
- A
synthesize_reused_result/reusable_importer_deptest usingLockfileResolution::Tarballwithgit_hosted: Some(true)).As per path instructions, "Ensure tests prove the regression ... not just coverage."
Also applies to: 188-212
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pnpm/crates/resolving-deps-resolver/src/lockfile_reuse/tests.rs` around lines 96 - 115, Extend the lockfile reuse tests around reusable_importer_dep and synthesize_reused_result to cover normalized-equivalent git specifiers, using syntactically different forms that resolve to the same repository and asserting the locked package is reused. Add coverage for LockfileResolution::Tarball with git_hosted set to true, verifying both reusable_importer_dep and synthesize_reused_result preserve reuse behavior and produce the expected result.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@pnpm/crates/resolving-deps-resolver/src/lockfile_reuse/tests.rs`:
- Around line 96-115: Extend the lockfile reuse tests around
reusable_importer_dep and synthesize_reused_result to cover
normalized-equivalent git specifiers, using syntactically different forms that
resolve to the same repository and asserting the locked package is reused. Add
coverage for LockfileResolution::Tarball with git_hosted set to true, verifying
both reusable_importer_dep and synthesize_reused_result preserve reuse behavior
and produce the expected result.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 1a6fa94c-0e28-461f-a729-70df5d0e4aa0
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock,!Cargo.lock
📒 Files selected for processing (21)
.changeset/git-hosted-dependency-parity.mdpnpm/crates/cli/tests/git_hosted_install.rspnpm/crates/git-fetcher/src/fetcher/tests.rspnpm/crates/git-fetcher/src/tarball_fetcher/tests.rspnpm/crates/package-manager/src/add.rspnpm/crates/package-manager/src/add/tests.rspnpm/crates/package-manager/src/install_frozen_lockfile.rspnpm/crates/package-manager/src/install_with_fresh_lockfile.rspnpm/crates/package-manager/src/symlink_direct_dependencies.rspnpm/crates/package-manager/src/symlink_direct_dependencies/tests.rspnpm/crates/resolving-deps-resolver/src/lockfile_reuse.rspnpm/crates/resolving-deps-resolver/src/lockfile_reuse/tests.rspnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rspnpm/crates/resolving-git-resolver/src/runners.rspnpm/crates/resolving-git-resolver/src/runners/tests.rspnpm/crates/testing-utils/src/bin.rspnpm/crates/testing-utils/src/registry.rspnpm/plans/TEST_PORTING.mdpnpr/crates/pnpr-fixtures/Cargo.tomlpnpr/crates/pnpr-fixtures/src/lib.rspnpr/crates/pnpr-fixtures/src/tests.rs
🚧 Files skipped from review as they are similar to previous changes (17)
- .changeset/git-hosted-dependency-parity.md
- pnpm/crates/testing-utils/src/bin.rs
- pnpr/crates/pnpr-fixtures/Cargo.toml
- pnpm/crates/package-manager/src/install_with_fresh_lockfile.rs
- pnpr/crates/pnpr-fixtures/src/tests.rs
- pnpm/crates/package-manager/src/add/tests.rs
- pnpm/crates/package-manager/src/symlink_direct_dependencies.rs
- pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs
- pnpm/crates/package-manager/src/install_frozen_lockfile.rs
- pnpr/crates/pnpr-fixtures/src/lib.rs
- pnpm/crates/git-fetcher/src/fetcher/tests.rs
- pnpm/crates/package-manager/src/symlink_direct_dependencies/tests.rs
- pnpm/crates/git-fetcher/src/tarball_fetcher/tests.rs
- pnpm/crates/package-manager/src/add.rs
- pnpm/plans/TEST_PORTING.md
- pnpm/crates/cli/tests/git_hosted_install.rs
- pnpm/crates/testing-utils/src/registry.rs
Summary
Completes the Git-hosted dependencies section of #13167 for pacquet.
The TypeScript CLI already implements these behaviors; this PR brings pacquet to parity. The two large-repository performance benchmarks remain intentionally out of scope per the tracker.
Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Written by an agent (Codex, gpt-5).
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by CodeRabbit
pnpm:rootevent output for Git resolutions, including more accurate version reporting.