Prebuilt binaries supporting plugins / custom linters #3361
-
There has been some previous discussion about this in some other issues:
Since some of those weren't totally relevant to the attached issues and/or closed, I thought it might make sense to start a new discussion about ways that it might be possible to use prebuilt As I understand it, there are a few requirements needed to support Go plugins (copy-pasting from #3259 (reply in thread) for reference):
I believe (although not 100% positive) that for the first three of these, the Go runtime verifies these and refuses to load a plugin if these conditions are not met. I am also under the impression that
With that in mind, does it seem like a reasonable option to publish two versions of the binaries, one with plugin support ( Barring any functional changes like publishing plugin-compatible binaries, I think there might be two things that would help users understand what's going on with the status quo:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello, |
Beta Was this translation helpful? Give feedback.
Hello,
it's not possible to pre-build something compatible with plugins because the plugin and the binary must be built with the same Go stack/environment.
CGO_ENABLED
is only one of the requirements.