{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/6095","repository_url":"https://api.github.com/repos/chef/chef","labels_url":"https://api.github.com/repos/chef/chef/issues/6095/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/6095/comments","events_url":"https://api.github.com/repos/chef/chef/issues/6095/events","html_url":"https://github.com/chef/chef/issues/6095","id":224649731,"node_id":"MDU6SXNzdWUyMjQ2NDk3MzE=","number":6095,"title":"Support allow_downgrade in apt_package","user":{"login":"whiteley","id":2215,"node_id":"MDQ6VXNlcjIyMTU=","avatar_url":"https://avatars0.githubusercontent.com/u/2215?v=4","gravatar_id":"","url":"https://api.github.com/users/whiteley","html_url":"https://github.com/whiteley","followers_url":"https://api.github.com/users/whiteley/followers","following_url":"https://api.github.com/users/whiteley/following{/other_user}","gists_url":"https://api.github.com/users/whiteley/gists{/gist_id}","starred_url":"https://api.github.com/users/whiteley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whiteley/subscriptions","organizations_url":"https://api.github.com/users/whiteley/orgs","repos_url":"https://api.github.com/users/whiteley/repos","events_url":"https://api.github.com/users/whiteley/events{/privacy}","received_events_url":"https://api.github.com/users/whiteley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-04-27T02:15:20Z","updated_at":"2018-09-24T19:13:29Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Description\r\n\r\nThe package resource has an `allow_downgrade` property that is supported for dnf/rpm/yum. Newer versions of Apt (1.1+) support this functionality along with a couple of others.\r\n\r\n```\r\n       --allow-downgrades\r\n           This is a dangerous option that will cause apt to continue without prompting if it is doing downgrades. It should not be used except in very special situations. Using it can potentially destroy your system! Configuration Item:\r\n           APT::Get::allow-downgrades. Introduced in APT 1.1.\r\n\r\n       --allow-remove-essential\r\n           Force yes; this is a dangerous option that will cause apt to continue without prompting if it is removing essentials. It should not be used except in very special situations. Using it can potentially destroy your system! Configuration Item:\r\n           APT::Get::allow-remove-essential. Introduced in APT 1.1.\r\n\r\n       --allow-change-held-packages\r\n           Force yes; this is a dangerous option that will cause apt to continue without prompting if it is changing held packages. It should not be used except in very special situations. Using it can potentially destroy your system! Configuration Item:\r\n           APT::Get::allow-change-held-packages. Introduced in APT 1.1.\r\n```\r\n\r\nI'm not sure if this can be done without causing backwards compatibility issues. I'll contribute a PR for this if I could be pointed towards a workable method to do it. Thanks!\r\n\r\n## Chef Version\r\n\r\n13.0.118\r\n\r\n## Platform Version\r\n\r\nUbuntu 16.04\r\n"},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/424091402","html_url":"https://github.com/chef/chef/issues/6095#issuecomment-424091402","issue_url":"https://api.github.com/repos/chef/chef/issues/6095","id":424091402,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDA5MTQwMg==","user":{"login":"jaininshah9","id":7143248,"node_id":"MDQ6VXNlcjcxNDMyNDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7143248?v=4","gravatar_id":"","url":"https://api.github.com/users/jaininshah9","html_url":"https://github.com/jaininshah9","followers_url":"https://api.github.com/users/jaininshah9/followers","following_url":"https://api.github.com/users/jaininshah9/following{/other_user}","gists_url":"https://api.github.com/users/jaininshah9/gists{/gist_id}","starred_url":"https://api.github.com/users/jaininshah9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaininshah9/subscriptions","organizations_url":"https://api.github.com/users/jaininshah9/orgs","repos_url":"https://api.github.com/users/jaininshah9/repos","events_url":"https://api.github.com/users/jaininshah9/events{/privacy}","received_events_url":"https://api.github.com/users/jaininshah9/received_events","type":"User","site_admin":false},"created_at":"2018-09-24T19:13:29Z","updated_at":"2018-09-24T19:13:29Z","author_association":"NONE","body":"@leshik Getting the same warning and not being downgraded. Were you able to find a solution?"}}
{"actor":{"display_login":"jaininshah9"}}