Open willglynn opened 9 years ago
Dang, I ran into this too with the wordpress cookbook. I attempted to try the fix in #177 but I couldn't get librarian-chef install
to run at all for some reason after that, sorry. My workaround for now is to switch to Berkshelf.
Consider the following
Cheffile
, adapted from a real one found in the wild:librarian-chef install
takes forever – over 20 hours of CPU time on the originalCheffile
so far – without success. Adding--verbose
shows why: some version of something depends onmysql >= 5.0.0
which conflicts with themysql 2.0.2
specified in theCheffile
.librarian-chef
starts backtracking appropriately, but it doesn't notice the conflict until well after the cookbook with themysql >= 5.0.0
dependency, so the resulting search space is huge. Here's a gist of the first million lines of search output.(Spoiler: turns out it's recent versions of
database
adding the conflicting dependency.2.0.0
works fine, so it should only have to backtrack a few releases, but instead it backtracks through the entire version history of several other cookbooks first, going forwards through all the other dependencies again each time.)There are several ways to address this. I'm preparing a pull request with my fix.