spotify / XCRemoteCache

Other
830 stars 53 forks source link

[Pods] Generate unique .rcinfo for Pods directory #45

Closed polac24 closed 2 years ago

polac24 commented 2 years ago

Generating unique .rcinfo for a project in Pods directory.

Context

Historically, for cocoapods plugin configuration .rcinfo contained always absolute paths so to make the cocoapods plugin simpler, we were able to reuse it for Pods project (import it with extra_configuration_file). However, #22 changed the way .rcinfo is generated and uses now relative paths (to make them VCS commitable). These relative paths are incorrect for the Pods project, as it is placed in a Pods subdirectory.

Fix

Example Pods/.rcinfo

Before

extra_configuration_file: "../.rcinfo"

After

cache_addresses:
- http://localhost:8080/cache/pods
primary_repo: # Some value
mode: consumer
xccc_file: "../.rc/xccc"
remote_commit_file: "../.rc/arc.rc"
prettify_meta_files: false

How to test?

Fixes $43