sous-chefs / java

Development repository for the java cookbook
https://supermarket.chef.io/cookbooks/java
Apache License 2.0
386 stars 637 forks source link

Custom resource name conflict #616

Closed shauryagarg2006 closed 4 years ago

shauryagarg2006 commented 4 years ago

Cookbook Version : 8.1.2

The name of the resource https://github.com/sous-chefs/java/blob/master/resources/openjdk_install.rb#L1 and here https://github.com/sous-chefs/java/blob/master/resources/openjdk_source_install.rb#L1

is same/conflicting. Is that intentional or by mistake?

I am getting error when using:

openjdk_install '8' do
  install_type 'package'
end
FATAL: NoMethodError: undefined method `install_type' for Custom resource java_openjdk_source_install from cookbook java

Because it is picking up the wrong custom resource.

damacus commented 4 years ago

I'm closing this as it doesn't use the standard template and is missing key details like chef-client version which we need to debug issues.

Please reopen with the correct template.