-
Notifications
You must be signed in to change notification settings - Fork 2
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
"undefined method `step_into?' for nil:NilClass" when used with chefspec #59
Comments
thoughts on providing a fix? |
Yeah, I'll give it a look. |
thanks! 🐛 👍 ⭐ |
Chef automatically requires all files in `libraries` directory. This happens before the node's runner is even created. Fixes edelight/chef-solo-search#59
Alright, unfortunately it can not be fixed on the |
do you think this should be an addition to chefspec? |
It was my first thought, that's why I've sent PR to |
I kind of agree with @sethvargo that it's not worth ensuring all of this works because of Zero. But feel free to PR the fix. |
That 'treetop' issue is a bit annoying. The code at https://github.com/edelight/chef-solo-search/blob/master/libraries/search.rb#L32-L43 seems to be broken. When Chef with a version not equal 10 is found, treetop '=1.5.3' is required, however the rescue block below installs '=1.5.1'. |
I am not sure if this issue should be filed here or in
chefspec
project, but I am getting the following error when my cookbook depends onchef-solo-search
:This error happens when
chef-solo-search
tries to installtreetop
gem usingChefGem
resource.chefspec
overridesResource#run_action
with it's own version which executesnode.runner.step_into?(self)
, butnode.runner
does not exists at the moment whenchef-solo-cookbook
is included.I've created repository to reproduce the problem: https://github.com/andreychernih/chef-solo-search-bug
The text was updated successfully, but these errors were encountered: