I was attempting to add the Nexus Cookbook into my Cheffile today, and I'm
getting the following exception (snipped for readability):
/opt/chef/embedded/lib/ruby/1.9.1/tsort.rb:152:in `block in tsort_each':
topological sort failed: ["nexus", "artifact"] (TSort::Cyclic)
from /opt/chef/embedded/lib/ruby/1.9.1/tsort.rb:183:in `block (2
levels) in each_strongly_connected_component'
from /opt/chef/embedded/lib/ruby/1.9.1/tsort.rb:210:in `block (2
levels) in each_strongly_connected_component_from'
from /opt/chef/embedded/lib/ruby/1.9.1/tsort.rb:219:in
`each_strongly_connected_component_from'
......
Some Googling seems to indicate the problem might be because of the circular
dependencies.
Nexus Metadatab.rb has: depends "artifact", "~> 0.11.0"
Artifact Metadatab.rb has: depends "nexus", ">= 0.17.0"
Are such circular dependencies valid in Chef in general, or this problem
specific to Librarian?
Shy of forking, and hacking up the depends, is there something more basic I'm
missing to get this working?
Thanks
Archive powered by MHonArc 2.6.16.