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

compat_resource deprecated #186

Closed
bablakely opened this issue Feb 6, 2018 · 0 comments
Closed

compat_resource deprecated #186

bablakely opened this issue Feb 6, 2018 · 0 comments

Comments

@bablakely
Copy link
Contributor

When trying to install/upload os-hardening (or compat_resource directly) with knife, it now fails with an error about basename in /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/lib/chef/knife/cookbook_site_download.rb:108. Upon further inspection, this appears to be a reference to the name of the replacement repository provided by the supermarket. In the case of compat_resource, there is none, so a "no implicit conversion of nil into String (TypeError)" is thrown at this line during the install of compat_resource and the whole process fails. Thus os-hardening can no longer install cleanly (at least using knife). Fix is simply to remove the compat_resource dependency from metadata.rb, but this will break functionality for older clients.

@bablakely bablakely changed the title compat_resource deprecated, remove from dependencies compat_resource deprecated Feb 6, 2018
bablakely pushed a commit to bablakely/chef-os-hardening that referenced this issue Feb 6, 2018
artem-sidorenko pushed a commit that referenced this issue Feb 12, 2018
* Remove dependency on compat_resource (deprecated). Fixes #186, but may break older clients
* Bumped Chef version to 12.14.60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant