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

fix missing spec repos #749

Merged
merged 3 commits into from
Dec 24, 2023
Merged

fix missing spec repos #749

merged 3 commits into from
Dec 24, 2023

Conversation

fnxpt
Copy link
Contributor

@fnxpt fnxpt commented Aug 10, 2023

Probably not the best ruby code since I don't actively develop in ruby.

When doing pod install with a Podfile.lock already created, some of the spec repos might be skipped because the key already exists

Fixes #748

@fnxpt
Copy link
Contributor Author

fnxpt commented Sep 14, 2023

@dnkoutso can you check this one please?

@dnkoutso
Copy link
Contributor

Hi @fnxpt can you add a test for this?

@dnkoutso
Copy link
Contributor

Thanks for the PR!

@fnxpt
Copy link
Contributor Author

fnxpt commented Sep 18, 2023

Hey @dnkoutso sorry for the delay, I couldn't find any tests on that file... do you have any guidelines?

@PedroT172
Copy link

uuuummmm....

@CocoaPods CocoaPods deleted a comment from PedroT172 Sep 19, 2023
@dnkoutso
Copy link
Contributor

@fnxpt the tests are called "specs" and the file you want is lockfile_spec.rb

@fnxpt
Copy link
Contributor Author

fnxpt commented Sep 19, 2023

Ok going to have a look at it today

@fnxpt
Copy link
Contributor Author

fnxpt commented Oct 15, 2023

sorry for the delay @dnkoutso.
Im having issues setting the tests... Are you able to help?

@fnxpt
Copy link
Contributor Author

fnxpt commented Oct 16, 2023

@dnkoutso
Finally fixed my environment to be able to run the tests but unfortunately Im getting a lot of errors on existing code.
Is this only on my side or its really broken? I'm running rspec spec/lockfile_spec.rb. This is blocking our pipelines, is there a way we can have a beta version for this, until we have the tests fixed/implemented.

45 examples, 21 failures

Failed examples:

rspec ./spec/lockfile_spec.rb:129 # Pod::Lockfile In general stores the initialization hash
rspec ./spec/lockfile_spec.rb:134 # Pod::Lockfile In general loads from a file
rspec ./spec/lockfile_spec.rb:140 # Pod::Lockfile In general returns nil if it can't find the initialization file
rspec ./spec/lockfile_spec.rb:145 # Pod::Lockfile In general returns the file in which is defined
rspec ./spec/lockfile_spec.rb:151 # Pod::Lockfile In general raises if the provided YAML doesn't returns a hash
rspec ./spec/lockfile_spec.rb:164 # Pod::Lockfile In general returns whether it is equal to another
rspec ./spec/lockfile_spec.rb:173 # Pod::Lockfile In general returns the list of the names of the  installed pods
rspec ./spec/lockfile_spec.rb:177 # Pod::Lockfile In general returns the versions of a given pod
rspec ./spec/lockfile_spec.rb:183 # Pod::Lockfile In general returns the versions of a given pod handling the case in which the root spec was not stored                                                                                                                                
rspec ./spec/lockfile_spec.rb:188 # Pod::Lockfile In general returns the spec repo of a given pod
rspec ./spec/lockfile_spec.rb:194 # Pod::Lockfile In general returns the checksum for the given Pod
rspec ./spec/lockfile_spec.rb:198 # Pod::Lockfile In general returns the dependencies used for the last installation
rspec ./spec/lockfile_spec.rb:207 # Pod::Lockfile In general returns the spec repo sources
rspec ./spec/lockfile_spec.rb:214 # Pod::Lockfile In general returns the spec repo sources when that section is missing
rspec ./spec/lockfile_spec.rb:219 # Pod::Lockfile In general only includes root names in spec repo sources
rspec ./spec/lockfile_spec.rb:231 # Pod::Lockfile In general includes the external source information in the generated dependencies
rspec ./spec/lockfile_spec.rb:236 # Pod::Lockfile In general returns the dependency that locks the pod with the given name to the installed version                                                                                                                                     
rspec ./spec/lockfile_spec.rb:243 # Pod::Lockfile In general raises if there is a request for a locking dependency for a not stored Pod
rspec ./spec/lockfile_spec.rb:249 # Pod::Lockfile In general returns the version of CocoaPods which generated the lockfile
rspec ./spec/lockfile_spec.rb:435 # Pod::Lockfile Serialization serializes correctly external dependencies
rspec ./spec/lockfile_spec.rb:599 # Pod::Lockfile Private helpers #generate_spec_repos sorts specs per spec repo by lowercase

@fnxpt
Copy link
Contributor Author

fnxpt commented Oct 23, 2023

@dnkoutso found the issue, running the wrong command.
Added the test, please have a look

@biehl1
Copy link

biehl1 commented Oct 23, 2023

Hi, can this be expedited somehow? We really need this too

@camisLuisa
Copy link

Thank you for the PR! It is really necessary.

@fnxpt
Copy link
Contributor Author

fnxpt commented Oct 28, 2023

@dnkoutso/ @amorde / @orta do you think we can merge this?

@santam85
Copy link

Encountered the same issue. Anything blocking this PR we can help with?

@fnxpt
Copy link
Contributor Author

fnxpt commented Nov 30, 2023

@dnkoutso can we merge this and include it on next version?

@biehl1
Copy link

biehl1 commented Nov 30, 2023

Hi guys, anything missing to merge this one? Seems all green to go

@fnxpt
Copy link
Contributor Author

fnxpt commented Dec 9, 2023

Hey guys, what are the next steps, do I need to do anything extra?
This PR is already approved for 2 weeks now and I would like to know when is it going to be merged.

@amorde amorde merged commit ec4fbde into CocoaPods:master Dec 24, 2023
5 checks passed
amorde added a commit that referenced this pull request Dec 24, 2023
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.

Missing spec repos on Podfile.lock
8 participants