Skip to content
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

Source code for latest version of Pod is not accessible to CocoaPods Trunk #320

Closed
neildhar opened this issue Nov 17, 2021 · 2 comments
Closed

Comments

@neildhar
Copy link

I've been trying to push the latest version of the pod hermes-engine for the last few days. (podspec)

Unfortunately, it keeps failing with the following output:

neildhar@neildhar-mbp ~/hermes (main) [1]> env hermes-artifact-url='https://github.com/facebook/hermes/releases/download/v0.10.0/hermes-runtime-darwin-v0.10.0.tar.gz' pod trunk push hermes-engine.podspec
Updating spec repo `trunk`
Validating podspec
/Users/neildhar/hermes/hermes-engine.podspec:8: warning: already initialized constant Pod::HermesHelper::BUILD_TYPE
/Users/neildhar/hermes/hermes-engine.podspec:8: warning: previous definition of BUILD_TYPE was here
/Users/neildhar/hermes/hermes-engine.podspec:8: warning: already initialized constant Pod::HermesHelper::BUILD_TYPE
/Users/neildhar/hermes/hermes-engine.podspec:8: warning: previous definition of BUILD_TYPE was here
 -> hermes-engine (0.10.0)
    - NOTE  | xcodebuild:  note: Using new build system
    - NOTE  | xcodebuild:  note: Using codesigning identity override:
    - NOTE  | xcodebuild:  note: Build preparation complete
    - NOTE  | xcodebuild:  note: Planning
    - NOTE  | xcodebuild:  note: Building targets in parallel
    - NOTE  | xcodebuild:  note: Using codesigning identity override: -

[!] Source code for your Pod was not accessible to CocoaPods Trunk. Is it a private repo or behind a username/password on http?

We've used the exact same command to push older versions of the pod, and have never seen this error. Has something changed in CocoaPods trunk in the last few months?

It's possible this is a similar issue to #236, although curl -LI "https://github.com/facebook/hermes/releases/download/v0.10.0/hermes-runtime-darwin-v0.10.0.tar.gz" completes successfully.

@neildhar neildhar changed the title Cannot push latest version to trunk Source code for latest version of Pod is not accessible to CocoaPods Trunk Nov 17, 2021
@orta
Copy link
Member

orta commented Nov 24, 2021

I don't think so - the checks for a http request hasn't changed in 7 (or 4) years, and effectively asks the ruby stdlib to verify the url. Perhaps GitHub was having issues? We've not had other reports around the http validation.

https://github.com/CocoaPods/trunk.cocoapods.org/blame/e157bf9f066b3e86018accc33aebc4a38f1407d1/app/models/specification_wrapper.rb#L73-L75

https://github.com/CocoaPods/Core/blame/f856fa726812c5a35e6ea664f3acc78285053f7e/lib/cocoapods-core/http.rb#L41-L52

@neildhar
Copy link
Author

neildhar commented Dec 1, 2021

@orta thanks for taking a look, I tried a few more times over the course of a few days and it eventually seems to have mysteriously resolved itself.

@neildhar neildhar closed this as completed Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants