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

Podfile.lock changing spec checksums for pods with git URLs in Cocoapods 0.36.3 #3371

Closed
anomaly2104 opened this Issue Apr 7, 2015 · 6 comments

Comments

Projects
None yet
2 participants
@anomaly2104

anomaly2104 commented Apr 7, 2015

I have a Podfile with some of the Pods using custom git urls using :git. After upgrading to Cocoapods 0.36.3 and running pod install, I get following spec checksum changes in Podfile.lock

screen shot 2015-04-07 at 4 21 02 pm

Pod is included like this:
pod 'Block-KVO', :git => 'https://github.com/iMartinKiss/Block-KVO.git', :tag => 'v2.2.2'

When I run this command to find the SHA of podspec:
curl "https://raw.githubusercontent.com/iMartinKiss/Block-KVO/v2.2.2/Block-KVO.podspec" | shasum

I get 094a3fb38f161468d7c406031af7d3daacc48ab0

Since the spec's SHA is still 094a3fb38f161468d7c406031af7d3daacc48ab0, then why the spec checksum for the pod in lock file is changing to: 513631d6055c08af9b4e02b44b0ab976957406fb

@kylef

This comment has been minimized.

Show comment
Hide comment
@kylef

kylef Apr 7, 2015

Contributor

@uditiiita The spec checksum used to be raw checksums of the files, but in a recent version they are now calculated based on a JSON representation which is internally stored.

{
  "name": "Block-KVO",
  "version": "2.2.2",
  "summary": "Objective-C Key-Value Observing made easier with blocks.",
  "homepage": "https://github.com/iMartinKiss/Block-KVO",
  "authors": {
    "Martin Kiss": "martin.kiss@me.com"
  },
  "license": {
    "type": "MIT",
    "file": "LICENSE.md"
  },
  "source": {
    "git": "https://github.com/iMartinKiss/Block-KVO.git",
    "tag": "v2.2.2"
  },
  "source_files": [
    "Sources",
    "Sources/**/*"
  ],
  "public_header_files": "MTKObserving.h",
  "requires_arc": true
}
Contributor

kylef commented Apr 7, 2015

@uditiiita The spec checksum used to be raw checksums of the files, but in a recent version they are now calculated based on a JSON representation which is internally stored.

{
  "name": "Block-KVO",
  "version": "2.2.2",
  "summary": "Objective-C Key-Value Observing made easier with blocks.",
  "homepage": "https://github.com/iMartinKiss/Block-KVO",
  "authors": {
    "Martin Kiss": "martin.kiss@me.com"
  },
  "license": {
    "type": "MIT",
    "file": "LICENSE.md"
  },
  "source": {
    "git": "https://github.com/iMartinKiss/Block-KVO.git",
    "tag": "v2.2.2"
  },
  "source_files": [
    "Sources",
    "Sources/**/*"
  ],
  "public_header_files": "MTKObserving.h",
  "requires_arc": true
}

@kylef kylef closed this Apr 7, 2015

@kylef kylef added the t3:discussion label Apr 7, 2015

@anomaly2104

This comment has been minimized.

Show comment
Hide comment
@anomaly2104

anomaly2104 Apr 7, 2015

Thanks @kylef . Can you suggest me any steps to generate this new checksum 513631d6055c08af9b4e02b44b0ab976957406fb from raw https://raw.githubusercontent.com/iMartinKiss/Block-KVO/v2.2.2/Block-KVO.podspec

anomaly2104 commented Apr 7, 2015

Thanks @kylef . Can you suggest me any steps to generate this new checksum 513631d6055c08af9b4e02b44b0ab976957406fb from raw https://raw.githubusercontent.com/iMartinKiss/Block-KVO/v2.2.2/Block-KVO.podspec

@kylef

This comment has been minimized.

Show comment
Hide comment
@kylef

kylef Apr 7, 2015

Contributor
Pod::Specification.from_file('Block-KVO.podspec').checksum
094a3fb38f161468d7c406031af7d3daacc48ab0
Contributor

kylef commented Apr 7, 2015

Pod::Specification.from_file('Block-KVO.podspec').checksum
094a3fb38f161468d7c406031af7d3daacc48ab0
@kylef

This comment has been minimized.

Show comment
Hide comment
@kylef

kylef Apr 7, 2015

Contributor

eh, thats wrong.

Contributor

kylef commented Apr 7, 2015

eh, thats wrong.

@kylef

This comment has been minimized.

Show comment
Hide comment
@kylef

kylef Apr 7, 2015

Contributor

Here's how you can do it from a shell:

$ pod ipc spec Block-KVO.podspec | openssl sha1
513631d6055c08af9b4e02b44b0ab976957406fb
Contributor

kylef commented Apr 7, 2015

Here's how you can do it from a shell:

$ pod ipc spec Block-KVO.podspec | openssl sha1
513631d6055c08af9b4e02b44b0ab976957406fb
@anomaly2104

This comment has been minimized.

Show comment
Hide comment
@anomaly2104

anomaly2104 Apr 7, 2015

@kylef Thanks a lot for prompt help.

anomaly2104 commented Apr 7, 2015

@kylef Thanks a lot for prompt help.

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