chef-cli icon indicating copy to clipboard operation
chef-cli copied to clipboard

Generated cookbook generators produce errors when used.

Open drrk opened this issue 6 years ago • 3 comments

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

drrk avatar Jul 22 '19 09:07 drrk

Hitting the same. looks like a regression since my last update of chef workstation

rottenbytes avatar Jul 22 '19 11:07 rottenbytes

Confirmed! To replicate run these two commands:

➜  chef generate generator foo
➜  chef generate repo chef-repo -g foo

afiune avatar Jul 29 '19 23:07 afiune

Related issue https://github.com/chef/chef-cli/issues/8

afiune avatar Feb 21 '20 16:02 afiune