-
Notifications
You must be signed in to change notification settings - Fork 348
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
Support multiple CDN sources #771
Conversation
This doesn't look like working code - there seems to be at least one undefined merhod. |
Would you mind to elaborate on it further? I have been leveraging similar patch for identical usecase as @santam85 and this seems to work for the use case. |
The added line is using Core/lib/cocoapods-core/cdn_source.rb Line 318 in d9cdb56
|
@orta @segiddins @paulb777 can you have a look at this one please? |
@igor-makarov I fixed the test errors triggered by the first iteration of my changes. Any other feedback on this PR? Do you think it's ready to be merged/released? |
Accept @segiddings suggestion Co-authored-by: Samuel Giddins <[email protected]>
@segiddins thanks for the suggestion! I see the macos-11 agent seems to fail altogether in the tests, what's missing to merge and release this? |
https://github.blog/changelog/2024-05-20-actions-upcoming-changes-to-github-hosted-macos-runners/ |
…github-hosted-macos-runners/ MacOS 11 is removed from GHA supported stack, updating to a supported version.
In this scenario why are we requesting indices for shards that don't exist? I would think we should be using the metadata and list of pods for the repo to determine which shards are possible, so this shouldn't even happen |
Unfortunately CocoaPods is basically unmaintained at this point so its hard to review changes like this when the impacts are unclear |
This feels like a fairly benign change to me, given it is explicitly basically ignoring this one exception |
@segiddins Thanks for your approval. If there's consensus this is a desirable change, how can we get it released? |
When using repositories different from the trunk, it might be that not all trunk are populated. The client attempts downloading the version shards from all sources. |
Right I understand that the custom repo doesn't have the shards. I'm asking why the code is even trying to load those shards from a repo that doesn't have them. it should be deciding which things to load based on the settings of the repo. Like @segiddins said though this seems fine to land regardless. |
Allows to declare multiple CDN sources in your Podfile, even if one of them does not fully mirror the trunk.
Removes the requirement to provide empty shards for the version metadata files of non-existing pods on a CDN repo.
Prevents errors like:
Fixes #768
Fixes CocoaPods/CocoaPods#12338