codenamephp / chef.cookbook.php

Cookbook to install php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecation CHEF-33

bastianschwarz opened this issue · comments

[2021-05-03T22:00:14+00:00] ERROR: Deprecation CHEF-33 from /opt/kitchen/cache/cookbooks/codenamephp_php/resources/composer.rb

  The  resource in the codenamephp_php cookbook should declare `unified_mode true`

Please see https://docs.chef.io/deprecations_unified_mode/ for further details and information on how to correct this problem.

================================================================================
Recipe Compile Error in /opt/kitchen/cache/cookbooks/codenamephp_php/resources/composer.rb
================================================================================

Chef::Exceptions::DeprecatedFeatureError
----------------------------------------
Deprecation CHEF-33 from /opt/kitchen/cache/cookbooks/codenamephp_php/resources/composer.rb

  The  resource in the codenamephp_php cookbook should declare `unified_mode true`

Please see https://docs.chef.io/deprecations_unified_mode/ for further details and information on how to correct this problem. (raising error due to treat_deprecation_warnings_as_errors being set)

System Info:
------------
chef_version=17.0.246
platform=debian
platform_version=10
ruby=ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-linux]
program_name=/opt/chef/bin/chef-client
executable=/opt/chef/bin/chef-client


Running handlers:
[2021-05-03T22:00:14+00:00] ERROR: Running exception handlers
Running handlers complete
[2021-05-03T22:00:14+00:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 01 seconds
[2021-05-03T22:00:15+00:00] FATAL: Stacktrace dumped to /opt/kitchen/cache/chef-stacktrace.out
[2021-05-03T22:00:15+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-05-03T22:00:15+00:00] FATAL: Chef::Exceptions::DeprecatedFeatureError: Deprecation CHEF-33 from /opt/kitchen/cache/cookbooks/codenamephp_php/resources/composer.rb

  The  resource in the codenamephp_php cookbook should declare `unified_mode true`

Please see https://docs.chef.io/deprecations_unified_mode/ for further details and information on how to correct this problem. (raising error due to treat_deprecation_warnings_as_errors being set)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Converge failed on instance <default-debian-10>.  Please see .kitchen/logs/default-debian-10.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
Error: Process completed with exit code 20.

Fixed by #60