rapid7/builderator

Cannot find `metadata.rb` when using specifying `cookbook.metadata` in `Buildfile`.

Closed this issue · 3 comments

Cannot find metadata.rb when using specifying cookbook.metadata in Buildfile.

An error occurred while reading the Berksfile:

  Could not open or read: '/Users/athompson/code/chef/chef-rapid7-ruby/.builderator/metadata.rb'

Yeah, that feature's never going to work because of the way builderator wraps Berkshelf now. The metadata Berksfile method instructs Berkshelf to look in the same directory as the Berksfile for a metadata.rb. Because we generate a Berksfile in a sub-directory, there'll never be a metadata.rb file to load.

Instead, add a cookbook with a relative path.

@jmanero-r7 was this fixed by #68?

Closing this