Skip to content

Instantly share code, notes, and snippets.

@fernandoaleman
Created February 8, 2022 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandoaleman/ac334919221c7b279b13e36be005df5e to your computer and use it in GitHub Desktop.
Save fernandoaleman/ac334919221c7b279b13e36be005df5e to your computer and use it in GitHub Desktop.
Chef cookstyle delivery error

Problem

When running cookstyle locally on a Mac, you get the error:

Offenses:

metadata.rb:1:1: W: Chef/Deprecations/Delivery: Do not include a .delivery directory for the delivery command in your cookbooks. Chef Delivery (Workflow) went EOL Dec 31st 2021 and the delivery command was removed from Chef Workstation Feb 2022. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_delivery)

Solution

Remove cached files from the rubocop directory

rm -Rf ~/.cache/rubocop_cache/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment