{"url":"https://api.github.com/repos/elastic/beats/pulls/18655","id":420630737,"node_id":"MDExOlB1bGxSZXF1ZXN0NDIwNjMwNzM3","html_url":"https://github.com/elastic/beats/pull/18655","diff_url":"https://github.com/elastic/beats/pull/18655.diff","patch_url":"https://github.com/elastic/beats/pull/18655.patch","issue_url":"https://api.github.com/repos/elastic/beats/issues/18655","number":18655,"state":"closed","locked":false,"title":"Remove vendor folder from the repository","user":{"login":"kvch","id":3876218,"node_id":"MDQ6VXNlcjM4NzYyMTg=","avatar_url":"https://avatars.githubusercontent.com/u/3876218?v=4","gravatar_id":"","url":"https://api.github.com/users/kvch","html_url":"https://github.com/kvch","followers_url":"https://api.github.com/users/kvch/followers","following_url":"https://api.github.com/users/kvch/following{/other_user}","gists_url":"https://api.github.com/users/kvch/gists{/gist_id}","starred_url":"https://api.github.com/users/kvch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvch/subscriptions","organizations_url":"https://api.github.com/users/kvch/orgs","repos_url":"https://api.github.com/users/kvch/repos","events_url":"https://api.github.com/users/kvch/events{/privacy}","received_events_url":"https://api.github.com/users/kvch/received_events","type":"User","user_view_type":"public","site_admin":false},"body":"## What does this PR do?\r\n\r\nThis PR removes the vendor folder from the repository.\r\n\r\n- [x] remove vendor folder\r\n- [x] use `go.elastic.co/go-licence-detector` to generate NOTICE file\r\n   - [x] merged functionality of https://github.com/elastic/go-licence-detector/pull/5\r\n~~- [ ] use package proxy/mirror when running CI jobs and also to use it locally if needed~~\r\n- [x] follow up changes in Beat genetors\r\n  the generated Beats use vendor folder, but users are free to move away from it\r\n\r\nBy removing the folder we become vulnerable to new dangers:\r\n- a package becomes unavailable\r\n- temporary network errors\r\n\r\n~~To combat these we are adopting Artifactory and mirroring these modules to our own infra. Before we merge this PR we need to make sure we are prepared to mitigate these issues. So a working Artifactory mirror is a must-have beforehand.~~\r\n\r\nWe decided to merge this without Artifactory. APM team had no issues with building their binaries consistently without an own package mirror, so we are positive this decision won't have a big impact on our builds.\r\n\r\nTo update dependencies, use the standard tools provided by Golang:\r\n\r\n```\r\n$ go get github.com/elastic/go-structform@v0.3.0\r\n$ make notice\r\n```\r\n\r\n## Why is it important?\r\n\r\nWe need to remove dependencies, as we are not allowed to vendor every dependency we use.\r\n\r\n## Checklist\r\n\r\n- [x] My code follows the style guidelines of this project\r\n- [x] I have commented my code, particularly in hard-to-understand areas\r\n- [x] I have made corresponding changes to the documentation\r\n- [x] I have made corresponding change to the default configuration files\r\n- [x] I have added tests that prove my fix is effective or that my feature works\r\n- [x] I have added an entry in `CHANGELOG.next.asciidoc` or `CHANGELOG-developer.next.asciidoc`.\r\n\r\n\r\n","created_at":"2020-05-20T09:36:41Z","updated_at":"2020-06-30T13:54:14Z","closed_at":"2020-06-29T05:03:52Z","merged_at":"2020-06-29T05:03:52Z","merge_commit_sha":"5426df01489eef92193fa8c927d03e697eeec445","assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1810687793,"node_id":"MDU6TGFiZWwxODEwNjg3Nzkz","url":"https://api.github.com/repos/elastic/beats/labels/Team:Services","name":"Team:Services","color":"1d76db","default":false,"description":"(Deprecated) Label for the former Integrations-Services team"},{"id":2035323200,"node_id":"MDU6TGFiZWwyMDM1MzIzMjAw","url":"https://api.github.com/repos/elastic/beats/labels/Team:Automation","name":"Team:Automation","color":"1d76db","default":false,"description":"Label for the Observability productivity team"},{"id":2040869176,"node_id":"MDU6TGFiZWwyMDQwODY5MTc2","url":"https://api.github.com/repos/elastic/beats/labels/v7.9.0","name":"v7.9.0","color":"ededed","default":false,"description":""}],"milestone":null,"draft":false,"commits_url":"https://api.github.com/repos/elastic/beats/pulls/18655/commits","review_comments_url":"https://api.github.com/repos/elastic/beats/pulls/18655/comments","review_comment_url":"https://api.github.com/repos/elastic/beats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/beats/issues/18655/comments","statuses_url":"https://api.github.com/repos/elastic/beats/statuses/921859f7ae9d4385be70725d1f975674ccc56b18","head":{"label":"kvch:refactoring-libbeat-remove-vendor-folder","ref":"refactoring-libbeat-remove-vendor-folder","sha":"921859f7ae9d4385be70725d1f975674ccc56b18","user":{"login":"kvch","id":3876218,"node_id":"MDQ6VXNlcjM4NzYyMTg=","avatar_url":"https://avatars.githubusercontent.com/u/3876218?v=4","gravatar_id":"","url":"https://api.github.com/users/kvch","html_url":"https://github.com/kvch","followers_url":"https://api.github.com/users/kvch/followers","following_url":"https://api.github.com/users/kvch/following{/other_user}","gists_url":"https://api.github.com/users/kvch/gists{/gist_id}","starred_url":"https://api.github.com/users/kvch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvch/subscriptions","organizations_url":"https://api.github.com/users/kvch/orgs","repos_url":"https://api.github.com/users/kvch/repos","events_url":"https://api.github.com/users/kvch/events{/privacy}","received_events_url":"https://api.github.com/users/kvch/received_events","type":"User","user_view_type":"public","site_admin":false},"repo":{"id":98179304,"node_id":"MDEwOlJlcG9zaXRvcnk5ODE3OTMwNA==","name":"beats","full_name":"kvch/beats","private":false,"owner":{"login":"kvch","id":3876218,"node_id":"MDQ6VXNlcjM4NzYyMTg=","avatar_url":"https://avatars.githubusercontent.com/u/3876218?v=4","gravatar_id":"","url":"https://api.github.com/users/kvch","html_url":"https://github.com/kvch","followers_url":"https://api.github.com/users/kvch/followers","following_url":"https://api.github.com/users/kvch/following{/other_user}","gists_url":"https://api.github.com/users/kvch/gists{/gist_id}","starred_url":"https://api.github.com/users/kvch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvch/subscriptions","organizations_url":"https://api.github.com/users/kvch/orgs","repos_url":"https://api.github.com/users/kvch/repos","events_url":"https://api.github.com/users/kvch/events{/privacy}","received_events_url":"https://api.github.com/users/kvch/received_events","type":"User","user_view_type":"public","site_admin":false},"html_url":"https://github.com/kvch/beats","description":":tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash ","fork":true,"url":"https://api.github.com/repos/kvch/beats","forks_url":"https://api.github.com/repos/kvch/beats/forks","keys_url":"https://api.github.com/repos/kvch/beats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kvch/beats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kvch/beats/teams","hooks_url":"https://api.github.com/repos/kvch/beats/hooks","issue_events_url":"https://api.github.com/repos/kvch/beats/issues/events{/number}","events_url":"https://api.github.com/repos/kvch/beats/events","assignees_url":"https://api.github.com/repos/kvch/beats/assignees{/user}","branches_url":"https://api.github.com/repos/kvch/beats/branches{/branch}","tags_url":"https://api.github.com/repos/kvch/beats/tags","blobs_url":"https://api.github.com/repos/kvch/beats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kvch/beats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kvch/beats/git/refs{/sha}","trees_url":"https://api.github.com/repos/kvch/beats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kvch/beats/statuses/{sha}","languages_url":"https://api.github.com/repos/kvch/beats/languages","stargazers_url":"https://api.github.com/repos/kvch/beats/stargazers","contributors_url":"https://api.github.com/repos/kvch/beats/contributors","subscribers_url":"https://api.github.com/repos/kvch/beats/subscribers","subscription_url":"https://api.github.com/repos/kvch/beats/subscription","commits_url":"https://api.github.com/repos/kvch/beats/commits{/sha}","git_commits_url":"https://api.github.com/repos/kvch/beats/git/commits{/sha}","comments_url":"https://api.github.com/repos/kvch/beats/comments{/number}","issue_comment_url":"https://api.github.com/repos/kvch/beats/issues/comments{/number}","contents_url":"https://api.github.com/repos/kvch/beats/contents/{+path}","compare_url":"https://api.github.com/repos/kvch/beats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kvch/beats/merges","archive_url":"https://api.github.com/repos/kvch/beats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kvch/beats/downloads","issues_url":"https://api.github.com/repos/kvch/beats/issues{/number}","pulls_url":"https://api.github.com/repos/kvch/beats/pulls{/number}","milestones_url":"https://api.github.com/repos/kvch/beats/milestones{/number}","notifications_url":"https://api.github.com/repos/kvch/beats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kvch/beats/labels{/name}","releases_url":"https://api.github.com/repos/kvch/beats/releases{/id}","deployments_url":"https://api.github.com/repos/kvch/beats/deployments","created_at":"2017-07-24T10:34:44Z","updated_at":"2025-07-13T10:08:43Z","pushed_at":"2022-06-27T12:36:25Z","git_url":"git://github.com/kvch/beats.git","ssh_url":"git@github.com:kvch/beats.git","clone_url":"https://github.com/kvch/beats.git","svn_url":"https://github.com/kvch/beats","homepage":"https://www.elastic.co/products/beats","size":387919,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"has_discussions":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"has_pull_requests":true,"pull_request_creation_policy":"all","topics":[],"visibility":"public","forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"elastic:master","ref":"master","sha":"5ba7026f81afcdf9a2d745eb248d2711d901673e","user":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","user_view_type":"public","site_admin":false},"repo":{"id":16554739,"node_id":"MDEwOlJlcG9zaXRvcnkxNjU1NDczOQ==","name":"beats","full_name":"elastic/beats","private":false,"owner":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","user_view_type":"public","site_admin":false},"html_url":"https://github.com/elastic/beats","description":":tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash","fork":false,"url":"https://api.github.com/repos/elastic/beats","forks_url":"https://api.github.com/repos/elastic/beats/forks","keys_url":"https://api.github.com/repos/elastic/beats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/beats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/beats/teams","hooks_url":"https://api.github.com/repos/elastic/beats/hooks","issue_events_url":"https://api.github.com/repos/elastic/beats/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/beats/events","assignees_url":"https://api.github.com/repos/elastic/beats/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/beats/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/beats/tags","blobs_url":"https://api.github.com/repos/elastic/beats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/beats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/beats/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/beats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/beats/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/beats/languages","stargazers_url":"https://api.github.com/repos/elastic/beats/stargazers","contributors_url":"https://api.github.com/repos/elastic/beats/contributors","subscribers_url":"https://api.github.com/repos/elastic/beats/subscribers","subscription_url":"https://api.github.com/repos/elastic/beats/subscription","commits_url":"https://api.github.com/repos/elastic/beats/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/beats/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/beats/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/beats/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/beats/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/beats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/beats/merges","archive_url":"https://api.github.com/repos/elastic/beats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/beats/downloads","issues_url":"https://api.github.com/repos/elastic/beats/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/beats/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/beats/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/beats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/beats/labels{/name}","releases_url":"https://api.github.com/repos/elastic/beats/releases{/id}","deployments_url":"https://api.github.com/repos/elastic/beats/deployments","created_at":"2014-02-05T19:01:02Z","updated_at":"2026-04-10T18:27:37Z","pushed_at":"2026-04-11T16:03:40Z","git_url":"git://github.com/elastic/beats.git","ssh_url":"git@github.com:elastic/beats.git","clone_url":"https://github.com/elastic/beats.git","svn_url":"https://github.com/elastic/beats","homepage":"https://www.elastic.co/products/beats","size":505957,"stargazers_count":12607,"watchers_count":12607,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":true,"forks_count":4995,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1077,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"has_pull_requests":true,"pull_request_creation_policy":"all","topics":["filebeat","heartbeat","metricbeat","packetbeat","winlogbeat"],"visibility":"public","forks":4995,"open_issues":1077,"watchers":12607,"default_branch":"main"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/beats/pulls/18655"},"html":{"href":"https://github.com/elastic/beats/pull/18655"},"issue":{"href":"https://api.github.com/repos/elastic/beats/issues/18655"},"comments":{"href":"https://api.github.com/repos/elastic/beats/issues/18655/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/beats/pulls/18655/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/beats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/beats/pulls/18655/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/beats/statuses/921859f7ae9d4385be70725d1f975674ccc56b18"}},"author_association":"CONTRIBUTOR","auto_merge":null,"assignee":null,"active_lock_reason":null,"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"kvch","id":3876218,"node_id":"MDQ6VXNlcjM4NzYyMTg=","avatar_url":"https://avatars.githubusercontent.com/u/3876218?v=4","gravatar_id":"","url":"https://api.github.com/users/kvch","html_url":"https://github.com/kvch","followers_url":"https://api.github.com/users/kvch/followers","following_url":"https://api.github.com/users/kvch/following{/other_user}","gists_url":"https://api.github.com/users/kvch/gists{/gist_id}","starred_url":"https://api.github.com/users/kvch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvch/subscriptions","organizations_url":"https://api.github.com/users/kvch/orgs","repos_url":"https://api.github.com/users/kvch/repos","events_url":"https://api.github.com/users/kvch/events{/privacy}","received_events_url":"https://api.github.com/users/kvch/received_events","type":"User","user_view_type":"public","site_admin":false},"comments":20,"review_comments":8,"maintainer_can_modify":false,"commits":1,"additions":153252,"deletions":2995073,"changed_files":10732}