chocolatey-community / chocolatey-cookbook

Chef cookbook to install chocolatey and packages on Windows
Apache License 2.0
108 stars 77 forks source link

NameError: uninitialized constant #<Class:#<Chef::Recipe:0x0000000009664a00>>::Chocolatey #142

Open mgiammarco opened 5 years ago

mgiammarco commented 5 years ago

Cookbook version

2.0.1

Chef-client version

15.1.36

Platform Details

Windows 10

Scenario:

Trying to install chocolatey with chef-run or chef-apply

Steps to Reproduce:

Launched chef-run or chef-apply on default.rb

Expected Result:

Install chocolatey on target system

Actual Result:

On remote failed to converge and no log. On local I see the log that says:

Generated at 2019-07-29 20:59:36 +0200 NameError: uninitialized constant #<Class:#>::Chocolatey ..\Downloads\chocolatey\recipes\default.rb:25:in run_chef_recipe' C:/opscode/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/chef-15.1.36-universal-mingw32/lib/chef/application/apply.rb:195:ininstance_eval' C:/opscode/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/chef-15.1.36-universal-mingw32/lib/chef/application/apply.rb:195:in run_chef_recipe' C:/opscode/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/chef-15.1.36-universal-mingw32/lib/chef/application/apply.rb:209:inrun_application' C:/opscode/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/chef-15.1.36-universal-mingw32/lib/chef/application/apply.rb:222:in run' C:/opscode/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/chef-bin-15.1.36/bin/chef-apply:24:in<top (required)>' C:/opscode/chef-workstation/modules/chef/../../bin/chef-apply:359:in load' C:/opscode/chef-workstation/modules/chef/../../bin/chef-apply:359:in

'

mgiammarco commented 5 years ago

Nobody can help me? It seems strange to me to get a NameError: uninitialized constant #<Class:#Chef::Recipe:0x0000000007eee678>::Chocolatey on a freshly installed Chef Workstation

ferventcoder commented 5 years ago

Paging @tas50 - not sure if you see notifications.