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

Remove elastic/elastic-agent dependency #48

Merged
merged 1 commit into from
Nov 24, 2022
Merged

Conversation

axw
Copy link
Member

@axw axw commented Nov 24, 2022

The main go.mod requires elastic/elastic-agent because it is used by v2tool. This causes users of elastic-agent-client to fetch the elastic-agent repo unnecessarily. This is doubly bad because the version of elastic-agent required does not exist; it probably came from a branch? For example, this is causing errors in APM Server's CI:

https://apm-ci.elastic.co/job/apm-server/job/apm-server-mbp/job/PR-9667/3/consoleFull

15:09:54 go: github.com/elastic/elastic-agent@v0.0.0-20220831162706-5f1e54f40d3e: invalid version: unknown revision 5f1e54f40d3e

Move v2tool to its own module to prevent this dependency leaking to users of elastic-agent-client. Update the elastic-agent module version, and adjust the v2tool code accordingly.

The main go.mod requires elastic/elastic-agent because
it is used by v2tool. This causes users of elastic-agent-client
to fetch the elastic-agent repo unnecessarily. This is doubly
bad because the version of elastic-agent required does not
exist; it probably came from a branch?

Move v2tool to its own module to prevent this dependency
leaking to users of elastic-agent-client. Update the elastic-agent
module version, and adjust the v2tool code accordingly.
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-11-24T08:15:40.444+0000

  • Duration: 3 min 6 sec

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@axw axw added the Team:Elastic-Agent Label for the Agent team label Nov 24, 2022
@axw axw requested a review from fearful-symmetry November 24, 2022 08:20
Copy link
Member

@cmacknz cmacknz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! v2tool probably needs to move into the elastic-agent repository, I think we may have a branch for this that isn't complete yet.

@efd6
Copy link

efd6 commented Nov 27, 2022

The root cause that this fixes for elastic-agent-client breaks the beats build. The relevant change for this repo that brings in the out-of-branch elastic-agent commit is 3e014f7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants