Skip to content

How to use plugins while building the binary? #3701

Answered by deepjyoti30
deepjyoti30 asked this question in Q&A
Discussion options

You must be logged in to vote

by plugins you mean what exactly?

I mean go plugins that can be built with the --buildmode=plugin as stated here option and can later be used in the main go file using the path of the built plugins. I am not sure if they are binaries since the built plugins have a .so extension.

glancing at the makefile, you seem to just build multiple binaries which are elasticsearch plugins? If so, you just need multiple builds in your .goreleaser.yaml

I am trying this approach out to see if this works based on the requirements, I essentially want to dynamically build all the plugins in the plugins directory.

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@caarlos0
Comment options

@deepjyoti30
Comment options

@caarlos0
Comment options

@deepjyoti30
Comment options

@caarlos0
Comment options

Answer selected by caarlos0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants