{"action":"opened","issue":{"url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1536","repository_url":"https://api.github.com/repos/berkshelf/berkshelf","labels_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1536/labels{/name}","comments_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1536/comments","events_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1536/events","html_url":"https://github.com/berkshelf/berkshelf/issues/1536","id":143096403,"number":1536,"title":"metadata precedence","user":{"login":"ameir","id":374330,"avatar_url":"https://avatars.githubusercontent.com/u/374330?v=3","gravatar_id":"","url":"https://api.github.com/users/ameir","html_url":"https://github.com/ameir","followers_url":"https://api.github.com/users/ameir/followers","following_url":"https://api.github.com/users/ameir/following{/other_user}","gists_url":"https://api.github.com/users/ameir/gists{/gist_id}","starred_url":"https://api.github.com/users/ameir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameir/subscriptions","organizations_url":"https://api.github.com/users/ameir/orgs","repos_url":"https://api.github.com/users/ameir/repos","events_url":"https://api.github.com/users/ameir/events{/privacy}","received_events_url":"https://api.github.com/users/ameir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-23T22:28:09Z","updated_at":"2016-03-23T22:28:09Z","closed_at":null,"body":"I was pulling my hair out trying to resolve a dependency issue, and it turned out that the problem was due to a rogue cookbook that had _both_ a metadata.rb and a metadata.json, each at different versions.  The metadata.rb was at 0.6.6, the metadata.json at 0.6.3.  When I'd do a `berks install`, things would look good, but any subsequent command would fail, complaining that 0.6.3 of the cookbook was not available.\r\n\r\nI know this isn't common, but if a warning can be thrown if both files exist, or if metadata.rb (or metadata.json) was referenced _always_, then that'd be ideal.  I think throwing a warning (or failing entirely) is ideal, just like with cookbooks without the name attribute in the metadata.\r\n"}}