Skip to content

Instantly share code, notes, and snippets.

@avit
Last active August 29, 2015 13:57
Show Gist options
  • Save avit/9534230 to your computer and use it in GitHub Desktop.
Save avit/9534230 to your computer and use it in GitHub Desktop.
site :opscode
metadata
cookbook 'locale',
git: "https://github.com/hw-cookbooks/locale.git",
tag: "v1.0.0"
depends 'locale', '>= 1.0.0'
site :opscode
metadata
cookbook 'base',
path: '../base'
@avit
Copy link
Author

avit commented Mar 13, 2014

myapp cookbook depends on the base cookbook. Expecting that I can declare all my dependencies in the base cookbook's Berksfile, but it seems that needs to be repeated everywhere.

Also, if using site :opscode and depending on a cookbook of the same name that you expect to get from elsewhere, how does it resolve the correct source? In this case, there is no locale-1.0.0 on the opscode community site, but what if there was? Would it have downloaded an unexpected thing even though I declared something else in my Berksfile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment