Open a-chernykh opened 10 years ago
thoughts on providing a fix?
Yeah, I'll give it a look.
thanks! :bug: :+1: :star:
Alright, unfortunately it can not be fixed on the chefspec
side. It looks like we need to put chef_gem 'treetop'
into a separate recipe and ask users to include it into runlist. @michaelglass I can wrap this in PR if it sounds good for you.
do you think this should be an addition to chefspec?
It was my first thought, that's why I've sent PR to chefspec
in the first place, but @sethvargo convinced me that it should belong to chef-solo-search
(see https://github.com/sethvargo/chefspec/issues/394)
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