-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
CocoaPods 1.16 breaks Pods that depends on .git
folder
#12674
Comments
.git
folder.git
folder
We have the same setup ( |
could be that this pod just doesn't work with I had similar issues and ensuring to work with a cocoapods version that works with a might be a different issue, though |
I've just tried to fix the I think that the issue has been introduced by the usage of |
The folder is removed after git download. I have checked, while it was processing the first step and it was there. After moving the result into cache, |
I created a test version of the CocoaPods gem removing the I don't know if it's the right approach. @amorde could you please help us to identify if the option |
that was added by @justinseanmartin to fix a performance issue, and I believe removing it would effectively break that optimization. I'm not familiar enough with the issue to know for sure though. |
Thanks for the reply. I understand that the fix has been added for a reason, but the side effects are quite huge, because a lot of pods depends from the |
Any update on this? The issue is becoming very critical for us |
Report
What did you do?
We have a custom pod that use the
prepare_command
option to execute a script. That script performs some operations in order to install some dependencies and update a git submodule contained in the repo.This pod works properly until CocoaPods v1.15.2, but it's broken with v1.16 (and 1.16.1).
To replicate the issue, we recreate a sample that mimic our configuration:
cocoapods-gitissue.git
: repo with a Podspec that has a submodulecocoapods-gitissue-cpplib.git
: C++ library that is included as submodule in the PodIn the sample project, we created this
Podfile
:Executing
pod install
using CocoaPods v1.16 doesn't work.We already investigate and the issue seems related to this change, that didn't copy the
.git
folder in thecache
directory: bc5fdc6What did you expect to happen?
We expect that the pod is properly installed (as in CocoaPods v1.15.x)
What happened instead?
pod install
fails with an error:CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
Project that demonstrates the issue
cocoapods-gitissue.git
: repo with a Podspec that has a submodulecocoapods-gitissue-cpplib.git
: C++ library that is included as submodule in the PodThe text was updated successfully, but these errors were encountered: