Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

0.14.0.rc2 Pods Defining New Version imported via :podspec not Installable #489

Closed
blakewatters opened this Issue Aug 30, 2012 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

blakewatters commented Aug 30, 2012

I have submitted some pull request patches to the upstream A2DynamicDelegate repository that have been merged into their 'next' branch, but have not made it into a new release. They have a Pod spec in the main repository, but it is hard-coded to point to their currently released tag. I wanted to install the sources from the 'next' branch via CocoaPods.

What I tried:

  1. Forked the upstream project to my repository
  2. Updated the podspec to define a new pre-release version (2.1-next.1) and point at the 'next' branch instead of the 2.0.1 tag
  3. Update my local Podfile to depend on 'A2DynamicDelegate', '~> 2.1.next' and the new :podspec via HTTP:
    pod 'A2DynamicDelegate', '~> 2.1.next', :podspec => 'https://raw.github.com/GateGuru/A2DynamicDelegate/gateguru/A2DynamicDelegate.podspec'
  4. Executed pod update to install
  5. CocoaPods reports to me that no 2.1.next version is available, only 2.0.1 (the version in the main Specs repository).

Thinking that it was my pre-release specifier, I bumped the version to 2.0.2 in the .podspec and pushed that to origin and changed my dependency to 2.0.2:
pod 'A2DynamicDelegate', '2.0.2', :podspec => 'https://raw.github.com/GateGuru/A2DynamicDelegate/gateguru/A2DynamicDelegate.podspec'

Again, pod reported to me that there was no such version, but 2.0.1 is available. It seems like the new version of the pod defined via the HTTP fetch is not visible for installation.

Owner

fabiopelosin commented Aug 30, 2012

I also observed this bug during development but didn't have a clean case to reproduce it.

Btw, are you aware that also the following options are available:

pod 'A2DynamicDelegate', :podspec => 'https://raw.github.com/GateGuru/A2DynamicDelegate/gateguru/A2DynamicDelegate.podspec' # should report version '2.0.2'
pod 'A2DynamicDelegate', :git => 'https://github.com/pandamonia/A2DynamicDelegate' :commit => '0000000000' # we use the source that you specify regardless of the tag of the podspec.
pod 'A2DynamicDelegate', :head
Contributor

blakewatters commented Aug 30, 2012

Installation via the :podspec option without a version specifier was not working. I will give the :git flavored options a whirl

Owner

fabiopelosin commented Aug 30, 2012

Fixed in master.

jzapater pushed a commit to jzapater/CocoaPods that referenced this issue Sep 17, 2013

fabiopelosin added a commit that referenced this issue Oct 25, 2014

[Dependency] Always copy the podspec of external sources to `Local Po…
…dspecs`

This reduces ambiguity and prevents bugs like #489, which was caused by the
Sandbox creating a LocalPods from the spec in the root (if present) and
ignoring the one in Local Pods.

Closes #489.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment