-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
mage:import doesn't use vendored beats on custom beats #13998
Comments
Wait, so when mage is building, it will search $GOPATH but not vendor? ...What? |
Yes, this seems to be what it is happening, at some step mage seems to ignore the |
At some point mage runs |
When I try to reproduce this, I'm getting a different error: |
Yep:
|
Small update. As @jsoriano and I discovered, the issue is with mage exec'ing |
In the short-term, try to avoid |
@fearful-symmetry can we close this issue by adding some content to the dev guide explaining that we should avoid |
I would prefer to remove And we could backport these changes to 7.5 and 7.4, if we do it only the custom beats created from 7.4.0 to 7.4.2 would be affected. |
Yah, I'm with @jsoriano here. I think removing |
Thanks for the fix! |
Since 7.4.0, custom beats reuse common mage targets from beats, for that they make use of
mage:import
. This is not using vendored beats in thevendor
directory, though other go tools do use it. This causes problems if a different version of beats is in theGOPATH
, like this one:It was reported in the mage repository (magefile/mage#244). Migration of Beats to go modules is proposed there as solution.
We will need to look for another solution in the meantime. Or look for an alternative way of reusing targets.
For confirmed bugs, please report:
mage:import
in magefiles, and checkout a different version in theGOPATH
.// cc: @radoondas
The text was updated successfully, but these errors were encountered: