Molinillo
Molinillo copied to clipboard
A generic dependency resolution algorithm.
The following actions return the wrong aciton name: https://github.com/CocoaPods/Molinillo/blob/6bc3d6045edadf800ba1b634fef15d3574369e60/lib/molinillo/dependency_graph/add_edge_no_circular.rb#L13 https://github.com/CocoaPods/Molinillo/blob/6bc3d6045edadf800ba1b634fef15d3574369e60/lib/molinillo/dependency_graph/detach_vertex_named.rb#L13
In the `dependency_graph.add_child_vertex` the variable `root` is assigned: ``` root = !parent_names.delete(nil) { true } ``` This assignment does not makes sense to me. |Test Case|`root`| |-------------|-------| |`![].delete(nil) { true...
Thanks for this great project! I truly appreciate your ARCHITECTURE document but I am unclear on the definitions for a number of terms. Could you provide definitions and examples for...
This looks like an edge case but I struggled to diagnose it for a few hours. My podspec looks like this: ``` Pod::Spec.new do |s| s.name = 'MyLib' s.version =...
It was once, but probably you're interested. The repo: https://github.com/AlexWayfer/gem_template/tree/102b583 Logs ``` > bundle exec rspec ./home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb:5: [BUG] Segmentation fault at 0x00007fc7ccabcfb8 ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux] -- Control...
cause new PossibilityState already push the state. ``` state.activated.tag(state) ```
Issue: https://github.com/CocoaPods/CocoaPods/issues/11326
### Error ``` ArgumentError - There is no path from A to D /Users/shuzhen/.rvm/gems/ruby-3.0.0/gems/molinillo-0.8.0/lib/molinillo/dependency_graph.rb:259:in `path' /Users/shuzhen/.rvm/gems/ruby-3.0.0/gems/molinillo-0.8.0/lib/molinillo/dependency_graph.rb:193:in `add_edge' /Users/shuzhen/.rvm/gems/ruby-3.0.0/gems/molinillo-0.8.0/lib/molinillo/dependency_graph.rb:152:in `block in add_child_vertex' /Users/shuzhen/.rvm/gems/ruby-3.0.0/gems/molinillo-0.8.0/lib/molinillo/dependency_graph.rb:150:in `each' /Users/shuzhen/.rvm/gems/ruby-3.0.0/gems/molinillo-0.8.0/lib/molinillo/dependency_graph.rb:150:in `add_child_vertex' /Users/shuzhen/.rvm/gems/ruby-3.0.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:738:in `block in require_nested_dependencies_for' /Users/shuzhen/.rvm/gems/ruby-3.0.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:737:in...
`possibility_set` has included all dependencies, so there is no need to duplicate compute dependencies.