See chef-boneyard/chef-provisioning-aws#68
To reproduce the bug be sure you have the following tree in your cookbook development directory:
|_.chef
| |_knife.rb
|_recipes
| |_default.rb
|_Berksfile
|_Gemfile
|_metadata.rb
Then run the following commands
$ bundle install
$ bundle exec berks vendor cookbooks
$ bundle exec chef-client -z -o aws-bug-cookbook::default
You will have the following error message:
[..]
Compiling Cookbooks...
================================================================================
Recipe Compile Error in /path/to/your/cookbook/development/directory/.chef/local-mode-cache/cache/cookbooks/aws-bug-cookbook/recipes/default.rb
================================================================================
TypeError
---------
superclass mismatch for class AwsEbsVolume
Cookbook Trace:
---------------
/path/to/your/cookbook/development/directory/.chef/local-mode-cache/cache/cookbooks/aws-bug-cookbook/recipes/default.rb:15:in `require'
/path/to/your/cookbook/development/directory/.chef/local-mode-cache/cache/cookbooks/aws-bug-cookbook/recipes/default.rb:15:in `from_file'
Relevant File Content:
----------------------
/path/to/your/cookbook/development/directory/.chef/local-mode-cache/cache/cookbooks/aws-bug-cookbook/recipes/default.rb:
8: #
9: # Licensed under the Apache License, Version 2.0 (the "License");
10: # you may not use this file except in compliance with the License.
11: # You may obtain a copy of the License at
12: #
13: # http://www.apache.org/licenses/LICENSE-2.0
14:
15>> require 'chef/provisioning/aws_driver'
16: with_driver 'aws'
17:
[..]