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

pod repo update crash on 1.8.x #9216

Closed
1 task done
jcesarmobile opened this issue Oct 2, 2019 · 11 comments
Closed
1 task done

pod repo update crash on 1.8.x #9216

jcesarmobile opened this issue Oct 2, 2019 · 11 comments
Labels
d1:easy An easy ticket that is a good start for first-time contributors s2:confirmed Issues that have been confirmed by a CocoaPods contributor s7:workaround available A workaround for the issue is available t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!
Milestone

Comments

@jcesarmobile
Copy link

jcesarmobile commented Oct 2, 2019

Report

I know CocoaPods 1.8 use the CDN by default, but since pod setup does nothing, if you have a Podfile with source 'https://github.com/CocoaPods/Specs.git', when you run pod repo update it will fail.

pod setup should continue working or there should be a new command to get the git based source downloaded.

What did you do?

I have an autogenerated Podfile with source 'https://github.com/CocoaPods/Specs.git', when I run pod repo update it fails.

What did you expect to happen?

To get the git sources as on previous versions

What happened instead?

Got this error:
No such file or directory ~/.cocoapods/repos/Spec_Lock

CocoaPods Environment

Stack

   CocoaPods : 1.8.0
        Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [x86_64-darwin17]
    RubyGems : 2.5.2.3
        Host : Mac OS X 10.14.6 (18G95)
       Xcode : 11.0 (11A420a)
         Git : git version 2.21.0 (Apple Git-122)
Ruby lib dir : /Users/jcesarmobile/.rbenv/versions/2.3.7/lib
Repositories: 

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.0
cocoapods-try         : 1.1.0
@dnkoutso
Copy link
Contributor

dnkoutso commented Oct 2, 2019

hmmmmmm can you list out exactly all steps you do from a clean CocoaPods install? You may have found a bug.

pod setup intentionally won't do something anymore as it has nothing to do. However, the error you've seen I've seen in another repo so I think you have uncovered a bug.

@dnkoutso dnkoutso added the s1:awaiting input Waiting for input from the original author label Oct 2, 2019
@jcesarmobile
Copy link
Author

Yeah, is a bug, there is no way of setting up the local copy on cocopadods 1.8.x, but it will try to use it if you have the github url in the Podfile.
I guess a workaround is to manually clone the repo, but would be good if there was a command for it.

@stale stale bot removed the s1:awaiting input Waiting for input from the original author label Oct 2, 2019
@dnkoutso
Copy link
Contributor

dnkoutso commented Oct 3, 2019

@jcesarmobile so I can't reproduce your issue. It seems you might be hitting this issue #9209

Can you paste your pod repo list?

@dnkoutso dnkoutso added the s1:awaiting input Waiting for input from the original author label Oct 3, 2019
@dnkoutso dnkoutso added this to the 1.8.3 milestone Oct 8, 2019
@stale stale bot removed the s1:awaiting input Waiting for input from the original author label Oct 8, 2019
@dnkoutso
Copy link
Contributor

dnkoutso commented Oct 8, 2019

See #9226 for why this is happening.

@dnkoutso dnkoutso added s2:confirmed Issues that have been confirmed by a CocoaPods contributor t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome! d1:easy An easy ticket that is a good start for first-time contributors s7:workaround available A workaround for the issue is available labels Oct 8, 2019
@dnkoutso
Copy link
Contributor

dnkoutso commented Oct 8, 2019

Workaround: At least one invocation of pod install will create the ~/.cocoapods/repos directory.

@dnkoutso
Copy link
Contributor

dnkoutso commented Oct 8, 2019

cc @igor-makarov should we add this to create repos_dir in pod setup command or perhaps update the code with the Spec_Lock file to ensure mkdir_p has been invoked?

@dnkoutso dnkoutso changed the title pod setup does nothing on 1.8.x pod repo update crash on 1.8.x Oct 9, 2019
@dnkoutso
Copy link
Contributor

dnkoutso commented Oct 9, 2019

PR #9234 is out for review and will ship with 1.8.4. I reproduce'd the issue locally as well.

@dnkoutso dnkoutso modified the milestones: 1.8.3, 1.8.4 Oct 9, 2019
@dnkoutso dnkoutso closed this as completed Oct 9, 2019
@jcesarmobile
Copy link
Author

Thanks for the fix, and sorry for not answering, I missed the notifications. Also my problem was on a private CI that was downgraded to 1.7.x because of this, so was hard to reproduce again.

@dnkoutso
Copy link
Contributor

dnkoutso commented Oct 9, 2019

It's OK. There were other duplicate reports of this issue and I was able to figure it out.

@dlbuckley
Copy link

@dnkoutso is there a schedule for when this fix will be released in 1.8.4?

@dnkoutso
Copy link
Contributor

Shipped today with 1.8.4

ianyh added a commit to ianyh/Amethyst that referenced this issue Dec 2, 2019
ianyh added a commit to ianyh/Amethyst that referenced this issue Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
d1:easy An easy ticket that is a good start for first-time contributors s2:confirmed Issues that have been confirmed by a CocoaPods contributor s7:workaround available A workaround for the issue is available t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!
Projects
None yet
Development

No branches or pull requests

3 participants