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
Description
When binapigen is called with specific a selected number of API files which does not contain memclnt but contains api files containing dump apis, it generates go files that have a dependency on memclnt even if it is not generated.
How to reproduce
Steps to reproduce the behavior:
call binapigen on a file that containes a _dump API only
try to compile the obtained go code
compilation error because the memclnt package is not found
Expected Behavior
We would expect binapigen to automatically generate the memclnt package, as any other dependency (as it does for included types.api files)
The text was updated successfully, but these errors were encountered:
Hey @mhawari, could you please provide more details about how you are using GoVPP to generate Go bindings? You mentioned binapigen, which is a Go package used by binapi-generator. Are you using it as a library or via CLI? It's recommended to use binapi-generator and point it to an entire VPP API directory containing .api.json files, selectively generating only the necessary files.
Could you also share the exact commands you’re running and their output? This will help me better understand and assist with the issue.
The memclnt plugin from VPP is a core component that includes ControlPing, commonly required in dump calls and RPC usage. If you wish to exclude it, you can use the --gen="" flag in binapi-generator. Otherwise, if you wish it to be included it HAS to be part of directory you use as input as GoVPP generator has no way to generate code for something it does not have definition for.
Description
When binapigen is called with specific a selected number of API files which does not contain memclnt but contains api files containing dump apis, it generates go files that have a dependency on memclnt even if it is not generated.
How to reproduce
Steps to reproduce the behavior:
Expected Behavior
We would expect binapigen to automatically generate the memclnt package, as any other dependency (as it does for included types.api files)
The text was updated successfully, but these errors were encountered: