-
Notifications
You must be signed in to change notification settings - Fork 80
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
pod_install fails due to caching #174
Comments
@devnev I added the ability to bust the You can bump the |
@fotos what are your reservations regarding removing the fallback? It mainly seems like a hurdle as noted in this issue - it's normal for caches to get invalidated when doing upgrades, but having upgrades break due to caching seems undesirable. |
@devnev I took a closer look – this looks like a bug in As I said before I don't have a strong opinion so feel free to open a PR to remove the fallback cache. |
I opened a PR for this: #198 I'm up to 1.16.2 cocoapods version in my project and run into this every time I upgrade react-native versions. I think it's time to remove the fallback. |
Orb version
7.1.1
What happened
After doing upgrades including pod updates, iOS build worked fine locally, but the orb's pod_install command failed in CI
Output from "Restoring cache" step:
Output from "Install CocoaPods" step:
This continued until we bumped the CACHE_KEY.
Speculation
AFAICT, the issue is that there's a bunch of outdated podspecs. I noticed that In the cache restore step, it shows that there's no cache for the exact Podfile.lock hash, but it can fall back to prefix-based matching to some previous build with a completely different Podfile.lock. Relevant CircleCI docs on restore_cache:
But I don't fully understand the pod system, and the podspecs seem to be in node_modules, so there might be more to it.
Expected behavior
Doesn't fail the build by when using an old cache.
The text was updated successfully, but these errors were encountered: