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

Do not crash if the repos dir is not setup. #9234

Merged

Conversation

dnkoutso
Copy link
Contributor

@dnkoutso dnkoutso commented Oct 9, 2019

closes #9216

@dnkoutso dnkoutso mentioned this pull request Oct 9, 2019
1 task
# repo updates do not cause each other to fail
File.open("#{Config.instance.repos_dir}/Spec_Lock", File::CREAT) do |f|
File.open("#{repos_dir}/Spec_Lock", File::CREAT) do |f|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured thats what the sources_manager get initialized with. I dont think we will ever have this case but if you had 2 sources_manager instances with two different folders they would have to wait for each other for the operation to be completed but they shouldn't have to?

@dnkoutso dnkoutso added this to the 1.8.4 milestone Oct 9, 2019
@dnkoutso dnkoutso merged commit d3c7bcd into CocoaPods:1-8-stable Oct 9, 2019
@dnkoutso dnkoutso deleted the fix_pod_repo_update_empty_repo branch October 9, 2019 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants