cookstyle icon indicating copy to clipboard operation
cookstyle copied to clipboard

Still points to old https://github.com/chefspec/fauxhai not https://github.com/chef/fauxhai

Open jjperry opened this issue 6 months ago • 1 comments

Version:

All

Environment:

All

Scenario:

Run cookstyle against valid Chefspec file and specify ChefSpec::ServerRunner.new(platform: 'amazon', version: '2023')

Steps to Reproduce:

Create any Chefspec spec.rb file and specify ChefSpec::ServerRunner.new(platform: 'amazon', version: '2023')

Expected Result:

No error message about not being a supported platform,

Actual Result:

When running cookstyle get the error that Amazon 2023 is not supported.

spec/unit/recipes/default_spec.rb:184:7: W: Chef/Deprecations/DeprecatedChefSpecPlatform: Use currently supported platforms in ChefSpec listed at https://github.com/ch efspec/fauxhai/blob/main/PLATFORMS.md. Fauxhai / ChefSpec will perform fuzzy matching on platform version so it's always best to be less specific ie. 10 instead of 10. 3 (https://docs.chef.io/workstation/cookstyle/chef_deprecations_deprecatedchefspecplatform) ChefSpec::ServerRunner.new(platform: 'amazon', version: '2023') do |node| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Source of the problem

Code is pointing to the no longer maintained https://github.com/chefspec/fauxhai versus the Chef maintained https://github.com/chef/fauxhai.

jjperry avatar Aug 06 '24 14:08 jjperry