Closed davidalpert closed 6 years ago
Hi there -- thank you for submitting this! I think we need to pin the chef-sugar dependency to >= 4.0.0 for this to work, and it'll also be a backwards incompatible change for any downstream users who were using this cookbook but now would be forced to upgrade chef-sugar. Do you agree with those two items? Thanks again!
@martinb3 I think you are correct that this would require a version pin; I hadn't thought of that. we try to run without pins as much as possible so bringing in the latest chef-sugar
gem is what brought on the storm of warnings in our specs.
I will defer to you and the other maintainers as to when is a good time to add such a pin on chef-sugar
to this cookbook.
Thanks @davidalpert -- I'll leave this open, and merge it when we next do a major bump anyway. 👍
@martinb3 I discussed this PR with @swalberg and he suggested that I can add a guard to only apply this when the dependent cookbook is >= 4.0.0 so I will look into that.
@martinb3 would that last change allow us to merge this earlier, before a major bump to this cookbook?
Thanks! I'll release this now as v2.6.4.
Description
This PR removes the outdated
include 'chef_sugar'
line fromrecipe[firewal_default]
.Since v4.0.0. of the chef_sugar it is no longer required to include this recipe explicitly and doing so generates warnings as described below.
Issues Resolved
recipe[firewall:default]
:this can happen once for each chefspec which uses the
chef_run
pattern creating a lot of repetative noise in rspec output.Check List