Adding source to Podfile breaks cocoapods dependency #21690
Replies: 20 comments
-
@asoneji does this reproduce when using the CLI (instead of the app)? |
Beta Was this translation helpful? Give feedback.
-
@rarkins What do you mean and how can I do that? I do not have any issue locally when I try |
Beta Was this translation helpful? Give feedback.
-
@asoneji how do you configure auth credentials for your private pod spec git repos |
Beta Was this translation helpful? Give feedback.
-
By the way, this issue happens even for For access to our private repo for my local machine and our build machines, we use GitHub token. We use GitHub Enterprise which required token even for read access. For renovate we are not sure how to configure GitHub auth token. FYI #6568 (comment) |
Beta Was this translation helpful? Give feedback.
-
How do you configure the token for |
Beta Was this translation helpful? Give feedback.
-
For the reproduce steps in this issue I have not configure any token for |
Beta Was this translation helpful? Give feedback.
-
@asoneji Can you add me to your sample project, so i can see the logs or past the relevant logs here. If i run
Runs 5.5 min, so i guess the renovate logs show a timeout? |
Beta Was this translation helpful? Give feedback.
-
see CocoaPods/CocoaPods#4989, looks like we definitely have a timeout here |
Beta Was this translation helpful? Give feedback.
-
Added @rarkins and @viceice to the repo. Yea @krohrsb had pointed this out to me: the repo is large and a workaround solution would be to use the CDN - https://blog.cocoapods.org/CocoaPods-1.7.2/ That being said |
Beta Was this translation helpful? Give feedback.
-
@asoneji We already have a timeout of 15min by default, I've changed yout podfile to use |
Beta Was this translation helpful? Give feedback.
-
Is it a viable workaround to add the CDN instead of the GitHub-based specs repo? And if so, is it possible that we can "massage" the podfile before running |
Beta Was this translation helpful? Give feedback.
-
@rarkins CDN was preview (optin) since 1.7.2 and became default in 1.8.0 so all cocoapods should use the cdn. Changing the podfile would result in different hashes in lockfile. So we can only forward update from git to cdn and have to leave it after. |
Beta Was this translation helpful? Give feedback.
-
In that case, if we were to say that using the legacy repository in source is unsupported and users should update to use the CDN, would it be a reasonable limitation? |
Beta Was this translation helpful? Give feedback.
-
yes i think so, because 1.7.2 is over a year old and supports cdn. most pod users should be on 1.9.x (first released in feb 2020) |
Beta Was this translation helpful? Give feedback.
-
This would be great. Would this error message be in the build log or PR comment which would inform the user to update the legacy repository in the source? |
Beta Was this translation helpful? Give feedback.
-
@rarkins should we update this issue to reflect latest ideas / suggestions?
ref #7120 |
Beta Was this translation helpful? Give feedback.
-
@viceice if it's technically easy for us to do the CDN migration then the question is: Would any user find that objectionable? If there's no reason to object to it then we should do it automatically, but otherwise do you think we need additional error logging on top of the existing failure message? |
Beta Was this translation helpful? Give feedback.
-
I think we should at lease issue a warning if sources are configured to use the old maybe we should add some explanation to the docs. so users can check for cdn usage before raising issues 😉 |
Beta Was this translation helpful? Give feedback.
-
Do we want/need a separate issue to track adding such a warning to the docs? |
Beta Was this translation helpful? Give feedback.
-
I've labeled it |
Beta Was this translation helpful? Give feedback.
-
What Renovate type are you using?
GitHub
Describe the bug
Issue updating Cocoapods dependency
Did you see anything helpful in debug logs?
To Reproduce
pod init
and added a pod dependencyplatform :ios, '11.2'
pod 'Analytics', '3.8.1'
source 'https://github.com/CocoaPods/Specs.git'
Note: If I remove
Source
from podfile the pr 2 again will behave successfully dependency update for renovate bot. Adding source impacts all PR's.Additional context
Source can be provided in
https
orssh
format:source 'https://github.com/somexyz/Specs.git'
source 'git@github.com:somexyz/Specs.git'
Beta Was this translation helpful? Give feedback.
All reactions