chef-cli
chef-cli copied to clipboard
Generated cookbook generators produce errors when used.
Description
Generated cookbook generators produce errors when used.
ChefDK Version
Chef Workstation version: 0.7.4
Platform Version
CentOS Linux release 7.6.1810 (Core)
Replication Case
Install Chef workstation on a new Centos 7.6 image.
Run chef generate generators
Generators are created and saved in /home/chef/code_generator
Add chefdk.generator_cookbook "/home/chef/code_generator" to /home/chef/.chef/config.rb
Run chef generate repo chef-repo
Errors occur as linked below.
Stacktrace
https://gist.github.com/drrk/9497a038d7c7a8f77a226d164bcd2ee9
NOTE: CHEFDK BUGS ONLY
Hitting the same. looks like a regression since my last update of chef workstation
Confirmed! To replicate run these two commands:
➜ chef generate generator foo
➜ chef generate repo chef-repo -g foo
Related issue https://github.com/chef/chef-cli/issues/8