Error: Failed to install cookbooks from lockfile

When the CI/CD pipeline loads dependency cookbooks from GitHub and the kitchen converge process throws the error:

Error: Failed to install cookbooks from lockfile
Reason: (CookbookOmnifetch::NotACookbook) The resource at ‘/…’ does not appear to be a valid cookbook. Does it have a metadata.rb?

make sure the remote revisions of the dependency cookbook match in the caller and the dependency cookbook’s Policy Lock files and both files are pushed to GitHub.

"scm_info": {
  "scm": "git",
  "remote": "https://github.com/.../....git",
  "revision": "22592d58489abb53316638ce9edfe5ee3742c5cc",

Leave a comment

Your email address will not be published. Required fields are marked *