On Thursday, August 23, 2012 at 6:24 AM, Thorsten Fischer wrote:
Hi all,I have a question regarding the resolution of cookbook dependencies inBerkshelf, using the "metadata" line in a Berksfile. Executive summary:it does not work for me. Suggestion: I am misunderstanding something,but I can't see what it is.At berkshelf.com I read the following: "[...] This allows you to resolvea Cookbook’s dependencies that you are currently working on just likeyou would resolve the dependencies of a Gem that you are currentlyworking on with Bundle".What I expected to work was therefore the following:$ cd project/$ cat Berksfilecookbook "berkshelf-test-1", git:At said URL, there is a cookbook (created using 'berks cookbook', as ithappens, though that probably does not matter). It contains thefollowing line in metadata.rb:depends "berkshelf-test-2", ">= 0.0.1"and in its Berksfile:metadatacookbook "berkshelf-test-2", git:In the project folder above, I expected to run:$ berks installand watch Berkshelf pull in the berkshelf-test-1 cookbook, resolve thedependency, then pull in the berkshelf-test-2 cookbook automaticallyfrom the source specified. However, what I get is:Installing berkshelf-test-1 (0.0.1) from git:'git://github.com/froschi/berkshelf-test-1' with branch:'58f043037e76b04e1096eed7b2c14941505c13fd'FATAL: Cookbook 'berkshelf-test-2' not found at site:So, it finds the dependency (if via metadata.rb or Berksfile, I do notknow), but it does not follow the specification in the Berksfile.Is this a bug? Am I misunderstanding how it should work?Cheers,t
Archive powered by MHonArc 2.6.16.