LoopPerfect / buckaroo

The decentralized package manager for C++ and friends 🏝️
https://buckaroo.pm
MIT License
935 stars 33 forks source link

Getting RecipeFetchException and NoSuchFileException when I try to install recipe #100

Closed biot023 closed 7 years ago

biot023 commented 7 years ago

Hi -- I followed the install instructions for Buck and Buckaroo, but my setup is failing when I try to install a recipe. The install command I'm using is this:

$ buckaroo install ericniebler/range-v3

This gives me this error:

Error!
com.loopperfect.buckaroo.sources.RecipeFetchException: Could not fetch ericniebl er/range-v3
java.nio.file.NoSuchFileException: /home/douglivesey/.buckaroo/buckaroo-recipes/ recipes/ericniebler/range-v3.json

If I try with another recipe, I get the same thing, for example:

$ buckaroo install philsquared/catch

Gives me the error:

Error!
com.loopperfect.buckaroo.sources.RecipeFetchException: Could not fetch philsquar ed/catch
java.nio.file.NoSuchFileException: /home/douglivesey/.buckaroo/buckaroo-recipes/ recipes/philsquared/catch.json

The directory /home/douglivesey/.buckaroo exists with the files buckaroo.json and user-uuid.txt in it. The subdirectory buckaroo-recipes doesn't exist in there, but explicitly creating it doesn't fix the problem.

I'm running Ubuntu 17.04.

Thanks for any and all advice you can offer to help me fix this. Doug.

njlr commented 7 years ago

Hi Doug,

Sorry that you have run into this issue! I will try to reproduce it now.

njlr commented 7 years ago

Yes, this is indeed a bug! Buckaroo is not fetching the cookbook correctly on start-up.

For now, you can just fetch it manually:

buckaroo update

After you do this buckaroo install commands should work.

biot023 commented 7 years ago

Yep, that seems to have fixed the issue -- cheers @njlr !

njlr commented 7 years ago

Glad it works! Issue for doing this automatically here... https://github.com/LoopPerfect/buckaroo/issues/101