Skip to content

Add all fields for example manifest file #23

@FlowingSPDG

Description

@FlowingSPDG

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions