{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/3607","labels_url":"https://api.github.com/repos/chef/chef/issues/3607/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/3607/comments","events_url":"https://api.github.com/repos/chef/chef/issues/3607/events","html_url":"https://github.com/chef/chef/issues/3607","id":91527203,"number":3607,"title":"12.4 Breaking Change Sending Include to Custom LWRP","user":{"login":"dpetzel","id":943268,"avatar_url":"https://avatars.githubusercontent.com/u/943268?v=3","gravatar_id":"","url":"https://api.github.com/users/dpetzel","html_url":"https://github.com/dpetzel","followers_url":"https://api.github.com/users/dpetzel/followers","following_url":"https://api.github.com/users/dpetzel/following{/other_user}","gists_url":"https://api.github.com/users/dpetzel/gists{/gist_id}","starred_url":"https://api.github.com/users/dpetzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpetzel/subscriptions","organizations_url":"https://api.github.com/users/dpetzel/orgs","repos_url":"https://api.github.com/users/dpetzel/repos","events_url":"https://api.github.com/users/dpetzel/events{/privacy}","received_events_url":"https://api.github.com/users/dpetzel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-27T23:05:02Z","updated_at":"2015-06-27T23:18:26Z","closed_at":null,"body":"This was originally discussed in http://lists.opscode.com/sympa/arc/chef-dev/2015-06/msg00039.html.\r\n\r\nwe are seeing several CI jobs failing for cookbooks with errors like this:\r\n```\r\nNoMethodError\r\n         -------------\r\n         undefined method `a_method_in_my_library' for LWRP resource my_lwrp from cookbook my_cookbook\r\n```\r\n\r\nReading through https://www.chef.io/blog/2015/06/24/chef-client-12-4-0-released/ (the section titled \"LWRPs are no longer automatically placed in the Chef::Resource namespace\") seems to be the key info. This implies it should be nothing more than a deprecation, however it seems to be causing an actual failure. Here is a snippet of what we are doing:\r\n```\r\n::Chef::Resource::MyLwrp.send(:include, ::My::Module)\r\nmy_lwrp 'blah' do\r\n  resource_file a_method_in_my_library\r\nend\r\n```\r\n\r\nThis works fine on 12.3.0 and only started failing as of 12.4.0. This feels like a pretty common pattern and I think the deprecation message is fine, but feels like this should continue to work in 12.4.0?\r\n\r\nI've whipped up an example cookbook that illustrates the issue here: https://github.com/dpetzel/chef_12_4_lwrp_method_include"},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/116165211","html_url":"https://github.com/chef/chef/issues/3607#issuecomment-116165211","issue_url":"https://api.github.com/repos/chef/chef/issues/3607","id":116165211,"user":{"login":"jaym","id":27443,"avatar_url":"https://avatars.githubusercontent.com/u/27443?v=3","gravatar_id":"","url":"https://api.github.com/users/jaym","html_url":"https://github.com/jaym","followers_url":"https://api.github.com/users/jaym/followers","following_url":"https://api.github.com/users/jaym/following{/other_user}","gists_url":"https://api.github.com/users/jaym/gists{/gist_id}","starred_url":"https://api.github.com/users/jaym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaym/subscriptions","organizations_url":"https://api.github.com/users/jaym/orgs","repos_url":"https://api.github.com/users/jaym/repos","events_url":"https://api.github.com/users/jaym/events{/privacy}","received_events_url":"https://api.github.com/users/jaym/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T23:18:26Z","updated_at":"2015-06-27T23:18:26Z","body":"https://github.com/chef/chef/pull/3603"}}