Giter VIP home page Giter VIP logo

Comments (6)

martinb3 avatar martinb3 commented on June 28, 2024

I guess at some point we should figure out how we're going to deprecate chef 11.x, keeping existing customers in place with chef-11.x compatible versions, but releasing new versions of these libraries that don't support chef 11.x.

This particular issue definitely feels like a chef 12 thing.

from chatops_notify.

joelhandwell avatar joelhandwell commented on June 28, 2024

From Chef12.4, it give warning when you are replacing DSL provided by another resource or provider class:

class X < Chef::Resource
  provides :file
end
class Y < Chef::Resource
  provides :file
end

This will emit a warning that Y is overriding X. To disable the warning, use override: true:

class X < Chef::Resource
  provides :file
end
class Y < Chef::Resource
  provides :file, override: true
end

reference:
https://www.chef.io/blog/2015/06/24/chef-client-12-4-0-released/

from chatops_notify.

martinb3 avatar martinb3 commented on June 28, 2024

The chefspec tests currently fail for me (2 failed, 2 total), so I'm not able to reproduce this. @jujugrrr as far as I can tell, this cookbook has no dependencies. I wonder where the other resource that provides :chatops_notify is being loaded from in Chefspec?

from chatops_notify.

jujugrrr avatar jujugrrr commented on June 28, 2024

I wonder where the other resource that provides :chatops_notify is being loaded from in Chefspec?

The cookbook has 2 providers providing :chatops_notify. https://github.com/rackspace-cookbooks/chatops_notify/blob/master/libraries/provider_chatops_notify_hipchat.rb#L7 https://github.com/rackspace-cookbooks/chatops_notify/blob/master/libraries/provider_chatops_notify_slack.rb#L7

from chatops_notify.

martinb3 avatar martinb3 commented on June 28, 2024

The cookbook has 2 providers providing :chatops_notify

I swear those weren't there before... 👓

from chatops_notify.

martinb3 avatar martinb3 commented on June 28, 2024

should I be worried ?

I think the intended usage here was to always override the resource with a specific provider. Perhaps we should just name these as two different resources & providers, and drop the supports? trick we were using before (since Chef appears to be moving away from that).

from chatops_notify.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.