You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess CGO isn't supported as it is based on compile-time code generation and low-level Go ABI things, but as I couldn't clearly find the answer, I thought it would be worth asking.
Background
Given Traefik plugins are now based on Yaegi, advanced middleware plugins such as web-app firewalls may be Go wrappers of C libraries.
Some of our users would like to have us in their Traefik proxy but, afaik, being limited to pure Go makes it impossible for now.
The text was updated successfully, but these errors were encountered:
As stated in the README, using CGO at interpreter level is not supported. It is always possible to wrap a pre-compiled package and export it to the interpreter by Use method (as it is done for the standard library), but that implies adding a new dependency to the host binary (in the plugin case, traefik).
Proposal
I guess CGO isn't supported as it is based on compile-time code generation and low-level Go ABI things, but as I couldn't clearly find the answer, I thought it would be worth asking.
Background
Given Traefik plugins are now based on Yaegi, advanced middleware plugins such as web-app firewalls may be Go wrappers of C libraries.
Some of our users would like to have us in their Traefik proxy but, afaik, being limited to pure Go makes it impossible for now.
The text was updated successfully, but these errors were encountered: