Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Migrate to Go modules (#3418) #3466

Merged
merged 3 commits into from
Mar 12, 2020
Merged

Conversation

axw
Copy link
Member

@axw axw commented Mar 12, 2020

Backports the following commits to 7.x:

- Add go.mod
- Add tools.go for tracking build/test tools in go.mod
- Update Makefile to use go.mod, instead of vendor
- Update beats imports to use "beats/v7"
- Update cespare/xxhash to use "xxhash/v2"
- Copy reviewdog.yml from beats
- Copy build scripts from beats/dev-tools
- Remove vendor and _beats
- Fork generate_notice.py -- needed because we do not (can not) use vendoring
- Update beats framework to bbf9d6697f4a; adapt to several breaking changes in libbeat
- tests/system: use "go list" to find libbeat
- Modify "update-beats" target to rsync libbeat/testing/environments
  into apm-server/testing/environments. We could alternatively just
  go our own way, but this is fairly easy to maintain for now.
- Update tests/Dockerfile to remove GOPATH, and prime the container
  with the module dependencies by copying in "go.mod" and running
  "go mod download".
@axw axw added the backport label Mar 12, 2020
@codecov-io
Copy link

codecov-io commented Mar 12, 2020

Codecov Report

Merging #3466 into 7.x will not change coverage by %.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              7.x    #3466   +/-   ##
=======================================
  Coverage   79.03%   79.03%           
=======================================
  Files         109      109           
  Lines        5724     5724           
=======================================
  Hits         4524     4524           
  Misses       1200     1200           

axw added 2 commits March 12, 2020 10:47
The eslegclient changes have not been backported
to 7.x (yet?), so this commit reverts those changes.
@axw axw merged commit 648ec4a into elastic:7.x Mar 12, 2020
@axw axw deleted the backport/7.x/pr-3418 branch March 12, 2020 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants