{"action":"created","issue":{"url":"https://api.github.com/repos/chef/omnibus/issues/712","repository_url":"https://api.github.com/repos/chef/omnibus","labels_url":"https://api.github.com/repos/chef/omnibus/issues/712/labels{/name}","comments_url":"https://api.github.com/repos/chef/omnibus/issues/712/comments","events_url":"https://api.github.com/repos/chef/omnibus/issues/712/events","html_url":"https://github.com/chef/omnibus/pull/712","id":176412993,"number":712,"title":"Ability to manually specify transitive dependency license information","user":{"login":"sersut","id":1695955,"avatar_url":"https://avatars.githubusercontent.com/u/1695955?v=3","gravatar_id":"","url":"https://api.github.com/users/sersut","html_url":"https://github.com/sersut","followers_url":"https://api.github.com/users/sersut/followers","following_url":"https://api.github.com/users/sersut/following{/other_user}","gists_url":"https://api.github.com/users/sersut/gists{/gist_id}","starred_url":"https://api.github.com/users/sersut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sersut/subscriptions","organizations_url":"https://api.github.com/users/sersut/orgs","repos_url":"https://api.github.com/users/sersut/repos","events_url":"https://api.github.com/users/sersut/events{/privacy}","received_events_url":"https://api.github.com/users/sersut/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/omnibus/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/chef/omnibus/labels/Signed%20CLA","name":"Signed CLA","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-12T15:54:32Z","updated_at":"2016-09-13T18:46:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chef/omnibus/pulls/712","html_url":"https://github.com/chef/omnibus/pull/712","diff_url":"https://github.com/chef/omnibus/pull/712.diff","patch_url":"https://github.com/chef/omnibus/pull/712.patch"},"body":"### Description\r\n\r\nThis PR adds the ability to manually specify license information for transitive dependencies for software definitions that omnibus can not automatically detect the license information for. \r\n\r\nA great example for this is the logstash plugins we are using in one of our products which are very hard to detect automatically and I am sure there are hundred other cases like that. \r\n\r\nHere is how this feature is used:\r\n\r\n```\r\nplugin_licenses = logstash_plugins.each do |l|\r\n  plugin_licenses << {\r\n    dependency_manager: \"logstash_plugin\",\r\n    name: l,\r\n    version: \"latest\",\r\n    license: \"Apache-2.0\",\r\n    license_file: [\r\n      \"https://raw.githubusercontent.com/logstash-plugins/#{l}/master/LICENSE\",\r\n      \"https://raw.githubusercontent.com/logstash-plugins/#{l}/master/NOTICE.txt\"\r\n    ]\r\n  }\r\nend\r\n\r\n# Add license information for the logstash plugins we are installing manually.\r\ndependency_licenses(plugin_licenses)\r\n```\r\n\r\n- [ ] Since this DSL requires a newer version of license_scout, we need to have a release it before merging this in.\r\n\r\n--------------------------------------------------\r\n/cc @chef/omnibus-maintainers, @danielsdeleo, @ryancragun "},"comment":{"url":"https://api.github.com/repos/chef/omnibus/issues/comments/246782985","html_url":"https://github.com/chef/omnibus/pull/712#issuecomment-246782985","issue_url":"https://api.github.com/repos/chef/omnibus/issues/712","id":246782985,"user":{"login":"yzl","id":719439,"avatar_url":"https://avatars.githubusercontent.com/u/719439?v=3","gravatar_id":"","url":"https://api.github.com/users/yzl","html_url":"https://github.com/yzl","followers_url":"https://api.github.com/users/yzl/followers","following_url":"https://api.github.com/users/yzl/following{/other_user}","gists_url":"https://api.github.com/users/yzl/gists{/gist_id}","starred_url":"https://api.github.com/users/yzl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yzl/subscriptions","organizations_url":"https://api.github.com/users/yzl/orgs","repos_url":"https://api.github.com/users/yzl/repos","events_url":"https://api.github.com/users/yzl/events{/privacy}","received_events_url":"https://api.github.com/users/yzl/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T18:46:02Z","updated_at":"2016-09-13T18:46:02Z","body":"👍 aside from AppVeyor issues."}}
{"actor":{"display_login":"yzl"}}