Diff in Podfile.lock when runs in different machines
See original GitHub issueDescription
When we run pod install
we have different hashes in FBReactNativeSpec
. This is because I think the building scripts are using full paths to generate the hash. For example, on the same machine if we rename the project directory, the hash will be different.
I think the PR that injects this bug is this.
Steps To Reproduce
1 - install node dependencies: yarn
2 - install ios pods dependencies: pod install
3 - create a commit in git: git commit -m "whatever your want"
4 - rename project folder: cd ../.. && mv projectSample projectSample2 && cd projectSample2/ios
5 - runs again pods installation command: pod install
Expected Results
Podfile.lock doesn’t have diffs after run pod install --repo-update
.
Founded Results
...
FBLazyVector: 5776f027522ce1b2415982c48c8407c95966c60f
- FBReactNativeSpec: 162f37a35ac13f9ef7ef0a77973a21393ba0dbab
+ FBReactNativeSpec: 7594b4ffdc73f2695967c9f7c766cf3c26da86a8
Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021
...
React Native version:
Module | Version |
---|---|
react | 17.0.1 |
react-native | 0.64.0-rc.4 |
Issue Analytics
- State:
- Created 3 years ago
- Reactions:58
- Comments:34 (13 by maintainers)
Top Results From Across the Web
How to Fix Unexpected Podfile.lock Diffs After Pod Install
What is happening is that your machine is downloading public pods in a different way than your colleague's machine.
Read more >Why does my team's Podfile.lock Podspec checksums change?
podspec.json inside your local Pods folder, when the next person runs pod install with your changes merged, they get a different SHA, as...
Read more >Why should you include Podfile.lock under version control?
If not you get an error, telling you that you need to update pods on your machine. It of course makes sense for...
Read more >pod install vs. pod update - CocoaPods Guides
Every time the pod install command is run — and downloads and install new pods — it writes the version it has installed,...
Read more >Run CocoaPods install - Integrations
CocoaPods version is determined based on the Podfile.lock file or on the Gemfile.lock file. If your Gemfile.lock file contains the cocoapods gem, then...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m encountering a a similar behaviour with
glog
andDoubleConversion
. It seems their checksums also change when runningpod install
on a different machine. Both of these pods are also included in React Native, but are they all related to theFBReactNativeSpec
? If not I can open a separate issue, but I thought it would make sense to mention it here anyway.@sonicdoe I’ve come to the same conclusion. However I fixed it by running
pod update glog
andpod update DoubleConversion
, which then fetches the podspec from the React Native node_modules directory! A bit quicker than removing the whole Pods folder 😃