You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
librarian-chef install takes forever – over 20 hours of CPU time on the original Cheffile so far – without success. Adding --verbose shows why: some version of something depends on mysql >= 5.0.0 which conflicts with the mysql 2.0.2 specified in the Cheffile. librarian-chef starts backtracking appropriately, but it doesn't notice the conflict until well after the cookbook with the mysql >= 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.
The text was updated successfully, but these errors were encountered:
willglynn
added a commit
to willglynn/librarian
that referenced
this issue
Nov 4, 2014
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.
The text was updated successfully, but these errors were encountered: