This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
Cookbook generators failed to generate new cookbooks -- undefined method `metadata' #2374
Labels
Triage: Duplicate
Indicates an issue is a duplicate of other open issue.
Type: Bug
Doesn't work as expected.
Description
Cookbook generators failed to generate new cookbooks -- undefined method `metadata'
Briefly describe the issue
chef generate cookbook <cookbook_name> -b -g ./code_generator
fails
ERROR: Chef Infra failed to converge: undefined method
metadata' for nil:NilClass from file /opt/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/chef-15.4.45/lib/chef/cookbook_loader.rb:99:in
load_cookbook'ChefDK Version
chef --version
ChefDK version: 4.2.0
Chef Infra Client version: 15.1.36
Chef InSpec version: 4.7.3
Test Kitchen version: 2.2.5
Foodcritic version: 16.1.1
Cookstyle version: 5.0.0
Platform Version
MacOS 10.46
RHEL 7.7
Replication Case
chef generate generator code_generator
chef generate repo chef-repo -g code_generator
The text was updated successfully, but these errors were encountered: