-
Notifications
You must be signed in to change notification settings - Fork 55
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
librarian-chef copies all Applications folder on Mac OS X #26
Comments
Also, I am on Mavericks and using the following Ruby version:
|
I ran into this as well using a similar pattern in my Cheffile: cookbook 'mycookbook', bundle exec librarian-chef install was taking a long time, so I cancelled it. Perhaps this was user error, where the cookbook was originally pulled from a git source into the cookbooks directory. I made edits to it thinking I could change the Cheffile to reference it with :path and then ran librarian-chef install. After further reading, I believe librarian-chef uses the cookbook directory to store cookbooks referenced in the Cheffile. So I'm not surprised bad things happened here, but I'm not sure why it started to copy / to the directory. I'm running Mac OS X Lion 10.7.5 (11G63) |
Although YMMV, I had this problem as well, and it was because the cookbook that was being referenced was empty. We had some starter cookbooks that are referenced (and copied), but when empty OSX for some reason will copy /Applications instead. Go figure. Make sure any local files referenced in Cheffile are actually there, and re-run librarian-chef to see if that makes a difference. This process should only take a few minutes, if it seems to hang on a specific cookbook for more than a minute or two I'd check to make sure it doesn't have some local files in there. |
I've put a couple of breakpoints, and it looks like Librarian wipes the recipe before trying to install it when it resides in its The workaround for me was to move the recipe somewhere else, e.g.: cookbook 'sky-develop', :path => 'site-cookbooks/sky-develop' |
What @SkyWriter said, although it seems like accidentally putting cookbooks in |
I know this is weird, but I did not believe with my own eyes, yet this happened.
I have a cookbook in ./cookbooks/eclm-base, the rest of the cookbooks listed in
Cheffile
are dependencies of that cookbook. MyCheffile
looks like this:Then do
librarian-chef install
. Takes bloody ages, then I decided to look intocookbooks/eclm-base
and found that Librarian-Chef replaced the contents of that cookbook directory with my Applications. I suspect it would have continued with the rest of my HDD root if I did not stop the process.The text was updated successfully, but these errors were encountered: