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
checksum value is ignored when binary download url is not set #192
Comments
Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs. |
I've found a similar issue today in version attributes.rbdefault['nodejs']['version'] = '14.15.5'
default['nodejs']['install_method'] = 'binary'
default['nodejs']['binary']['checksum'] = 'gatomon'
default['nodejs']['packages'] = %w(nodejs) recipe.rbapt_update 'all'
include_recipe 'nodejs' The output being:
|
Ironically, if you destroy the kitchen suite, and then remove this line from the attributes: default['nodejs']['binary']['checksum'] = 'gatomon' and run converge again, the recipe crashes and shows a checksum mismatch error:
|
Cookbook version
5.0.0
Chef-client version
13.6.4
Platform Details
Centos 7.4
Scenario:
I noticed that if you don't set the
default['nodejs']['binary']['url']
attribute value then the checksum value is ignored.Steps to Reproduce:
use the following attributes and values -
Expected Result:
Notice that i did not set
node['nodejs']['binary']['checksum']['linux_x64']
value, so technicallykitchen converge
should fail because it would use the default checksum value but not the checksum value fornode-v8.11.1-sunos-x64.tar.gz
.Actual Result:
kitechen converge
succeeds.The text was updated successfully, but these errors were encountered: