-
Notifications
You must be signed in to change notification settings - Fork 51
Description
Hello, thanks for awesome plugin template!
I am developing some small plugin for rewriting [GET]URL query to [POST]JSON body.
(This is helpful for emulating AWS API Gateway w/o localstack)
I was trying to build my plugin but I was struggling with import error.
FlowingSPDG/traefik-plugin-query-to-json#6
And I digged into piceus's source code, and found out there's a basePkg field which is not listed unlike import field.
https://github.com/traefik/piceus/blob/909a0aa078ceb53ca4af6dd4b299c4efc0b0335e/pkg/core/types.go#L16-L28
(Also import field automatically replaces hypen(-) to underscore(_) so I think that's why I was struggling)
https://github.com/traefik/piceus/blob/909a0aa078ceb53ca4af6dd4b299c4efc0b0335e/pkg/core/yaegi.go#L153-L158
So can we add document for import/basePkg field, and note that import field value will be replaced on Yeagi check process?
Thank you.