Skip to content
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

feat: rust pnpm lockfile implementation #4906

Merged
merged 14 commits into from
May 26, 2023
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cli/internal/ffi/ffi.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ func toPackageManager(packageManager string) ffi_proto.PackageManager {
return ffi_proto.PackageManager_NPM
case "berry":
return ffi_proto.PackageManager_BERRY
case "pnpm":
return ffi_proto.PackageManager_PNPM
default:
panic(fmt.Sprintf("Invalid package manager string: %s", packageManager))
}
Expand Down
9 changes: 6 additions & 3 deletions cli/internal/ffi/proto/messages.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions cli/internal/lockfile/lockfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ func AllTransitiveClosures(
if lf, ok := lockFile.(*BerryLockfile); ok {
return rustTransitiveDeps(lf.contents, "berry", workspaces, lf.resolutions)
}
if lf, ok := lockFile.(*PnpmLockfile); ok {
return rustTransitiveDeps(lf.contents, "pnpm", workspaces, nil)
}

g := new(errgroup.Group)
c := make(chan closureMsg, len(workspaces))
Expand Down
Loading