{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/54","repository_url":"https://api.github.com/repos/chef-cookbooks/compat_resource","labels_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/54/comments","events_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/54/events","html_url":"https://github.com/chef-cookbooks/compat_resource/issues/54","id":155947553,"number":54,"title":"Upgrading from 12.9.1 -> 12.10.1 breaks other cookbooks, eg. \"apt\"","user":{"login":"rmoriz","id":1527,"avatar_url":"https://avatars.githubusercontent.com/u/1527?v=3","gravatar_id":"","url":"https://api.github.com/users/rmoriz","html_url":"https://github.com/rmoriz","followers_url":"https://api.github.com/users/rmoriz/followers","following_url":"https://api.github.com/users/rmoriz/following{/other_user}","gists_url":"https://api.github.com/users/rmoriz/gists{/gist_id}","starred_url":"https://api.github.com/users/rmoriz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmoriz/subscriptions","organizations_url":"https://api.github.com/users/rmoriz/orgs","repos_url":"https://api.github.com/users/rmoriz/repos","events_url":"https://api.github.com/users/rmoriz/events{/privacy}","received_events_url":"https://api.github.com/users/rmoriz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-20T12:00:04Z","updated_at":"2016-05-20T18:22:32Z","closed_at":null,"body":"### Cookbook version\r\n12.10.1\r\n\r\n### Chef-client version\r\n12.8.1\r\n\r\n### Platform Details\r\nDebian 8\r\n\r\n### Scenario:\r\n\r\n- use apt cookbook 2.9.2\r\n- add another repo (see code in exception)\r\n- works with compat_resource (12.9.1)\r\n- breaks chef run when Berkshelf resolves compat_resource (12.10.1)\r\n\r\n### Actual Result:\r\n\r\n Chef::Exceptions::ResourceNotFound\r\n    ----------------------------------\r\n    resource execute[apt-get update] is configured to notify resource execute[apt-cache gencaches] with action run, but execute[apt-cache gencaches] cannot be found in the resource collection. execute[apt-get update] is defined in /home/rmoriz/chef-solo/cookbooks-2/apt/providers/repository.rb:196:in `block in class_from_file'\r\n    \r\n    Cookbook Trace:\r\n    ---------------\r\n    /home/rmoriz/chef-solo/cookbooks-2/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection.rb:45:in `find_local'\r\n    /home/rmoriz/chef-solo/cookbooks-2/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection.rb:58:in `find'\r\n    /home/rmoriz/chef-solo/cookbooks-2/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:41:in `run_action'\r\n    \r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /home/rmoriz/chef-solo/cookbooks-2/xxxx-base/recipes/_backports.rb\r\n    \r\n      1: apt_repository 'jessie-backports' do\r\n      2:   uri 'http://http.debian.net/debian'\r\n      3:   distribution 'jessie-backports'\r\n      4:   components ['main']\r\n      5:   cache_rebuild true\r\n      6:   action :add\r\n      7:   only_if { node['lsb']['codename'] == 'jessie' }\r\n      8: end\r\n    \r\n    Compiled Resource:\r\n    ------------------\r\n    # Declared in /home/rmoriz/chef-solo/cookbooks-2/xxxx-base/recipes/_backports.rb:1:in `from_file'\r\n    \r\n    apt_repository(\"jessie-backports\") do\r\n      action [:add]\r\n      retries 0\r\n      retry_delay 2\r\n      default_guard_interpreter :default\r\n      declared_type :apt_repository\r\n      cookbook_name :\"xxxx-base\"\r\n      recipe_name \"_backports\"\r\n      uri \"http://http.debian.net/debian\"\r\n      distribution \"jessie-backports\"\r\n      components [\"main\"]\r\n      cache_rebuild true\r\n      only_if { #code block }\r\n    end\r\n    "},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/comments/220681801","html_url":"https://github.com/chef-cookbooks/compat_resource/issues/54#issuecomment-220681801","issue_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/54","id":220681801,"user":{"login":"tonyflint","id":868644,"avatar_url":"https://avatars.githubusercontent.com/u/868644?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyflint","html_url":"https://github.com/tonyflint","followers_url":"https://api.github.com/users/tonyflint/followers","following_url":"https://api.github.com/users/tonyflint/following{/other_user}","gists_url":"https://api.github.com/users/tonyflint/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyflint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyflint/subscriptions","organizations_url":"https://api.github.com/users/tonyflint/orgs","repos_url":"https://api.github.com/users/tonyflint/repos","events_url":"https://api.github.com/users/tonyflint/events{/privacy}","received_events_url":"https://api.github.com/users/tonyflint/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T18:22:32Z","updated_at":"2016-05-20T18:22:32Z","body":"This is causing us a lot of converge failures (usually with the apt 2.9.2 cookbook)."}}
{"actor":{"display_login":"tonyflint"}}