Skip to main content

Chef/Deprecations/CookbooksDependsOnSelf

Cookstyle cops page

The Cookstyle cops department: Chef/Deprecations

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Make sure a cookbook doesn’t depend on itself. This will fail on Chef Infra Client 13+

Examples

incorrect

name 'foo'
depends 'foo'

correct

name 'foo'

Configurable attributes

NameDefault valueConfigurable values
Version Added5.2.0String
Include
  • **/metadata.rb
Array

Thank you for your feedback!

×









Search Results