traefik / yaegi

Yaegi is Another Elegant Go Interpreter
https://pkg.go.dev/github.com/traefik/yaegi
Apache License 2.0
7.02k stars 348 forks source link

Rabbitmq libraries failed #1602

Open roman-yerin opened 9 months ago

roman-yerin commented 9 months ago

The following traefik plugin sample.go triggers an unexpected result

package plugin
import(
  amqp "github.com/rabbitmq/amqp091-go"
)

Expected result

I expect the traefik plugin will load

Got

The plugin failed to load with the following import error

amqp091-go/channel.go:425:18: cannot use type func(amqp091.frame) as type func(*struct {},amqp091.frame)

Yaegi Version

0.15.1

Additional Notes

Even if fix this import error changing the library code (which is flawlessly works natively), the yaegi fails in many other places. This one https://github.com/Azure/go-amqp doesn't work either.