aspyatkin / yarn-cookbook

Chef cookbook to install Yarn package manager
https://supermarket.chef.io/cookbooks/yarn
MIT License
5 stars 6 forks source link

chef 16 deprecation #8

Open kpmueller opened 4 years ago

kpmueller commented 4 years ago
  Resource yarn_install needs `provides :yarn_install` in addition to `resource_name :yarn_install` declaration at 1 location:
    - /opt/chef/embedded/lib/ruby/2.6.0/forwardable.rb:230:in `setup_run_context'
   See https://docs.chef.io/deprecations_resource_name_without_provides/ for further details.
  Resource yarn_run needs `provides :yarn_run` in addition to `resource_name :yarn_run` declaration at 1 location:
    - /opt/chef/embedded/lib/ruby/2.6.0/forwardable.rb:230:in `setup_run_context'
   See https://docs.chef.io/deprecations_resource_name_without_provides/ for further details.

In general, as it says, for compatibility with chef <= 15 and chef 16+ both, it needs in the resources something like:

resource_name :yarn_install
provides :yarn_install

(I think -- I'm not a chef cookbook expert)

I'll try to make a PR but I'm not 100% sure :D