Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chef capture fails to unmarshal gems with versions: Bump go-chef to 0.28.1 #940

Open
DaCAPNcrunch opened this issue Feb 20, 2023 · 0 comments
Labels
Status: Untriaged An issue that has yet to be triaged.

Comments

@DaCAPNcrunch
Copy link

Description

chef capture [NODE_NAME] -p [PROFILE]
 - Setting up local repository
 - Capturing node object '[NODE_NAME]'
 - Capturing cookbooks...
Error: unable to capture node cookbooks for '[NODE_NAME]': Failed to download cookbook [COOKBOOK]: json: cannot unmarshal array into Go struct field CookbookMeta.metadata.gems of type string

Running chef capture on a node with versions declared for gems in metadata.rb fails to unmarshal the array. This is actually happening in go-chef and is fixed in https://github.com/go-chef/chef/releases/tag/v0.28.1. We just need to bump vendor/github.com/go-chef to 0.28.1.

Chef Analyze Version

chef-analyze: 0.1.185
chef-workstation: 23.2.1028

@DaCAPNcrunch DaCAPNcrunch added the Status: Untriaged An issue that has yet to be triaged. label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant