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
{{ message }}
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
The problem is that if we develop plugin outside EG directory plugin cannot be compiled because of interface mismatch. EG uses vendored hashicorp/go-plugin which causes the problem.
Error message
./main.go:10:3: cannot use "github.com/serverless/event-gateway/plugin".SubscriberPlugin literal (type *"github.com/serverless/event-gateway/plugin".SubscriberPlugin) as type "github.com/hashicorp/go-plugin".Plugin in map value:
*"github.com/serverless/event-gateway/plugin".SubscriberPlugin does not implement "github.com/hashicorp/go-plugin".Plugin (wrong type for Client method)
have Client(*"github.com/serverless/event-gateway/vendor/github.com/hashicorp/go-plugin".MuxBroker, *rpc.Client) (interface {}, error)
want Client(*"github.com/hashicorp/go-plugin".MuxBroker, *rpc.Client) (interface {}, error)
One solution is to exclude github.com/hashicorp/go-plugin and github.com/hashicorp/go-hclog from vendoring but that causes some more problems with x/net/trace registered twice.
The text was updated successfully, but these errors were encountered:
This is a Bug Report
The problem is that if we develop plugin outside EG directory plugin cannot be compiled because of interface mismatch. EG uses vendored
hashicorp/go-plugin
which causes the problem.Error message
One solution is to exclude
github.com/hashicorp/go-plugin
andgithub.com/hashicorp/go-hclog
from vendoring but that causes some more problems withx/net/trace
registered twice.The text was updated successfully, but these errors were encountered: