Material-components-ios: [CocoaPods] git lfs is causing errors with 72.0.1 - 72.1.0 releases

Created on 8 Dec 2018  ·  22Comments  ·  Source: material-components/material-components-ios

Hello!

I'm experiencing this issue when i try to update my pods:

Installing MaterialComponents (72.0.1)
Git download
Git download
$ /usr/bin/git clone
https://github.com/material-components/material-components-ios.git
/var/folders/7v/5chqp0nj5l581c8qh2wnyc700000gn/T/d20181208-1443-qfg5v4
--template= --single-branch --depth 1 --branch v72.0.1
Cloning into '/var/folders/7v/5chqp0nj5l581c8qh2wnyc700000gn/T/d20181208-1443-qfg5v4'...
Note: checking out '3ca470f65fab2b47af9143cf155bd30a39848067'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

git-lfs filter-process: git-lfs: command not found
fatal: The remote end hung up unexpectedly
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

[!] Error installing MaterialComponents
[!] /usr/bin/git clone https://github.com/material-components/material-components-ios.git /var/folders/7v/5chqp0nj5l581c8qh2wnyc700000gn/T/d20181208-1443-qfg5v4 --template= --single-branch --depth 1 --branch v72.0.1

Cloning into '/var/folders/7v/5chqp0nj5l581c8qh2wnyc700000gn/T/d20181208-1443-qfg5v4'...
Note: checking out '3ca470f65fab2b47af9143cf155bd30a39848067'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

git-lfs filter-process: git-lfs: command not found
fatal: The remote end hung up unexpectedly
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

I did it many times and i've never got this errors :S

Thanks for the support!

Best regards,


Internal data

Client-blocking CocoaPods Bug

Most helpful comment

Should be fixed once the latest release lands.
https://github.com/material-components/material-components-ios/pull/5974

All 22 comments

i have exactly this error

Hi @llKoull, could you please provide a set of steps to reproduce this? You mention attempting to update the pods--is all this just the output from a pod update command?

Hi @andrewoverton !

Yes i just did "pod update" and i got the error so i tried using "pod update --verbose" to get the full output that i've pasted ;)

Thanks and best regards,

I'm still experiencing the issue but i finally downloaded the pod using:

pod 'MaterialComponents', :git => 'https://github.com/material-components/material-components-ios.git', :tag => 'v70.1.0'

I know this is not the latest release but it allows me to release a new version of my App.

Best regrads,

pod 'MaterialComponents/ProgressView', :git => 'https://github.com/material-components/material-components-ios.git', :tag => 'v72.1.0'

not works ! any workaround?

@22Round the version 72 is not working. I’ve been trying all the latests releases and the latests one that works is “v70.1.0”.

Best regards!

Please use 72.0.1 or later. Version 72.0.0 was released with a mismatch between the Cocoapods numbering and the release numbering. CocoaPods' page for Material Components should show 72.1.0 as the latest version available.

@romoore i would love to use it, but as you can see in the first post, the newests versions are giving me problems.

Trying all the latests releases, the only one that doesn’t give me error is de v70.1.0.

I tried to reproduce the issue with no luck. I'm using CocoaPods 1.5.0 and used a new (single-view) Xcode project.

rsmoore:TestDelete rsmoore$ pod init
rsmoore:TestDelete rsmoore$ vi Podfile  # Added 'MaterialComponents' as a dependency
rsmoore:TestDelete rsmoore$ pod update
Update all pods
Updating local specs repositories
  $ /usr/local/git/current/bin/git -C /Users/rsmoore/.cocoapods/repos/master fetch origin --progress
  remote: Enumerating objects: 8073, done.        
  remote: Counting objects: 100% (8073/8073), done.        
  remote: Compressing objects: 100% (79/79), done.        
  remote: Total 20602 (delta 8001), reused 8031 (delta 7987), pack-reused 12529        
  Receiving objects: 100% (20602/20602), 2.35 MiB | 12.93 MiB/s, done.
  Resolving deltas: 100% (14067/14067), completed with 2489 local objects.
  From https://github.com/CocoaPods/Specs
     aabe8745f2a..15cbd0737ee  master     -> origin/master
  $ /usr/local/git/current/bin/git -C /Users/rsmoore/.cocoapods/repos/master rev-parse --abbrev-ref
  HEAD
  master
  $ /usr/local/git/current/bin/git -C /Users/rsmoore/.cocoapods/repos/master reset --hard
  origin/master
  Checking out files: 100% (2206/2206), done.
  HEAD is now at 15cbd0737ee [Add] YstenTestKit 0.0.3
warning: inexact rename detection was skipped due to too many files.
warning: you may want to set your diff.renameLimit variable to at least 1997 and retry the command.

CocoaPods 1.6.0.beta.2 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.6.0.beta.2

Analyzing dependencies
Downloading dependencies
Installing MDFInternationalization (2.0.0)
Installing MDFTextAccessibility (2.0.0)
Installing MaterialComponents (72.1.0)
Installing MotionAnimator (2.8.1)
Installing MotionInterchange (1.6.0)
Installing MotionTransitioning (5.0.0)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `TestDelete.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 6 total pods installed.

[!] Automatically assigning platform `ios` with version `12.0` on target `TestDelete` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
rsmoore:TestDelete rsmoore$ cat Podfile
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'TestDelete' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for TestDelete
  pod 'MaterialComponents'

  target 'TestDeleteTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'TestDeleteUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end
rsmoore:TestDelete rsmoore$ pod --version
1.5.0
rsmoore:TestDelete rsmoore$ 

@romoore I made a video that you can download from: https://we.tl/t-231i0g12l4

In the video you will be able to see my cocoapods version (1.5.3) and you can see how i open my Podfile, remove the materialcomponents pod and then, i try to add it again (you will se the error).

After that, i add the version v70.1.0 and it works again.

I've been using this library in other projects and i've never had this problem :S

Thanks and best regards,

PD: From the minute 1:20 to the minute 4:05 cocoapods is working (i think that it's downloading the repo but it takes so long).

Summoning @randallli who was the release engineer for last week's releases. He may understand better what's going on.

looking

I believe the root cause is that "git-lfs: command not found"
I have reproduced it on my machine that doesn't have git-lfs.

We are looking into why this is happening and will post again here once we have a solution.

@randallli you're right! i just installed git-lfs (brew install git-lfs) and now i'm able to download the latest version!

Thanks! ^_^

pod try MaterialComponents is also failing

I'm going to put together a roll-back PR to remove snapshot tests in case we can't find a solution forward.

sharing output/error message from try:
Updating spec repositories

CocoaPods 1.6.0.beta.2 is available.
To update use: sudo gem install cocoapods --pre
[!] This is a test version we'd love you to try.

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.6.0.beta.2

Trying MaterialComponents
[!] /usr/local/git/current/bin/git clone https://github.com/material-components/material-components-ios.git /private/var/folders/km/jwhx5mp50_n1rctj6lcjrg_m0081qp/T/CocoaPods/Try/MaterialComponents --template= --single-branch --depth 1 --branch v72.1.0

Cloning into '/private/var/folders/km/jwhx5mp50_n1rctj6lcjrg_m0081qp/T/CocoaPods/Try/MaterialComponents'...
Note: checking out '208b780ac1f85248800c079fcdba6177f943f8e2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

git-lfs smudge -- 'snapshot_test_goldens/goldens_64/MDCCardSnapshotTests/[email protected]': git-lfs: command not found
error: external filter 'git-lfs smudge -- %f' failed 127
error: external filter 'git-lfs smudge -- %f' failed
fatal: snapshot_test_goldens/goldens_64/MDCCardSnapshotTests/[email protected]: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

We believe the error is caused by the introduction of .gitattributes and may be fixed by excluding that file from our releases (stable branch). I will be testing this theory.

Should be fixed once the latest release lands.
https://github.com/material-components/material-components-ios/pull/5974

Great! Thanks for your help!! ^_^

https://github.com/material-components/material-components-ios/releases/tag/v72.2.0 landed. I confirmed on my non git lfs computer that this is working.

pod try MaterialComponents works

Was this page helpful?
0 / 5 - 0 ratings