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

Bad resource naming for openjdk_source_install #645

Closed jimbodragon closed 3 years ago

jimbodragon commented 3 years ago

:ghost: Brief Description

Try to use the resource openjdk_install but this resource us already use by openjdk_source_install.rb

:pancakes: Cookbook version

8.4.0

:woman_cook: Chef-Infra Version

15.0.300

:tophat: Platform details

Ubuntu 18.04 LTS

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create a cookbook/recipe using:
openjdk_install "core" do
  version "14"
  default true
  install_type "package"
end
  1. Compile the cookbook
  2. Error is:
NoMethodError
    -------------
    undefined method `install_type' for Custom resource java_openjdk_source_install from cookbook java

:police_car: Expected behavior

Able to use openjdk_install as main wrapper for openjdk_pkg_install and openjdk_source_install

ramereth commented 3 years ago

@jimbodragon can you please verify that #646 fixes your issue?