trinhngocthuyen / cocoapods-spm

A CocoaPods plugin to add SPM dependencies to CocoaPods-based projects
MIT License
35 stars 7 forks source link

[Bug] Cannot generate metadata of a package where package name does not match repo slug #59

Closed trinhngocthuyen closed 2 months ago

trinhngocthuyen commented 2 months ago

What happened?

Take nearby as an example: https://github.com/google/nearby.

Solution

The following line needs to be updated https://github.com/trinhngocthuyen/cocoapods-spm/blob/7847017dc46e4940cdac798ce8f527cf0616ba8a/lib/cocoapods-spm/resolver/product_dep_resolver.rb#L23

It should be Dir.chdir(spm_config.pkg_checkouts_dir / pkg.slug) instead

CocoaPods environment

No response

Anything else?

No response