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

Stop using mage:import in custom beats 7.4 #14187

Merged
merged 3 commits into from
Oct 25, 2019

Conversation

jsoriano
Copy link
Member

mage:import doesn't take into account vendorized dependencies, this is a
problen for custom beats, because by default they have libbeat as a
vendorized dependency. The solution would be to use go modules, but in
the meantime lets remove the use of mage:import from the magefiles
intended to be used by custom beats.

Revert part of #13239 related to custom beats, backports part of #14162.

Fixes #13998 for 7.4.

`mage:import` doesn't take into account vendorized dependencies, this is a
problen for custom beats, because by default they have libbeat as a
vendorized dependency. The solution would be to use go modules, but in
the meantime lets remove the use of `mage:import` from the magefiles
intended to be used by custom beats.

Revert part of elastic#13239 related to custom beats.
@jsoriano jsoriano changed the title Stop using mage:import in custom beats Stop using mage:import in custom beats 7.4 Oct 22, 2019
@jsoriano jsoriano force-pushed the remove-mage-import-custom-beats-7.4 branch from f7702c6 to 1d21cd3 Compare October 22, 2019 09:48
@jsoriano jsoriano self-assigned this Oct 22, 2019
@jsoriano jsoriano added :Generator Related to code generators for building custom Beats or modules. review labels Oct 22, 2019
@jsoriano jsoriano marked this pull request as ready for review October 22, 2019 09:50
// Use RACE_DETECTOR=true to enable the race detector.
func GoTestIntegration(ctx context.Context) error {
return devtools.GoTest(ctx, devtools.DefaultGoTestIntegrationArgs())
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@fearful-symmetry so it seems that we had also a target for integration tests before, maybe I should include this target too in the changes for master/7.5. WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would think so, yah

@jsoriano jsoriano merged commit 82280b0 into elastic:7.4 Oct 25, 2019
@jsoriano jsoriano deleted the remove-mage-import-custom-beats-7.4 branch October 25, 2019 16:18
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
`mage:import` doesn't take into account vendorized dependencies, this is a
problen for custom beats, because by default they have libbeat as a
vendorized dependency. The solution would be to use go modules, but in
the meantime lets remove the use of `mage:import` from the magefiles
intended to be used by custom beats.

Revert part of elastic#13239 related to custom beats.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Generator Related to code generators for building custom Beats or modules. review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants