sous-chefs / firewall

Development repository for the firewall cookbook
https://supermarket.chef.io/cookbooks/firewall
Apache License 2.0
99 stars 150 forks source link

remove explicit include of recipe chef_sugar::default #197

Closed davidalpert closed 6 years ago

davidalpert commented 6 years ago

Description

This PR removes the outdated include 'chef_sugar' line from recipe[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

Check List

martinb3 commented 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!

davidalpert commented 6 years ago

@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.

martinb3 commented 6 years ago

Thanks @davidalpert -- I'll leave this open, and merge it when we next do a major bump anyway. 👍

davidalpert commented 6 years ago

@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.

davidalpert commented 6 years ago

@martinb3 would that last change allow us to merge this earlier, before a major bump to this cookbook?

martinb3 commented 6 years ago

Thanks! I'll release this now as v2.6.4.