FDio / govpp

Go toolset for the VPP.
Apache License 2.0
193 stars 82 forks source link

Move generated binapi #82

Open ondrej-fabry opened 1 year ago

ondrej-fabry commented 1 year ago

This issue tracks progress for moving the generated Go bindings located currently in binapi directory outside of the main module.

List of tasks related to this:

Considering these approaches:

  1. move the binapi folder under examples and make examples a Go sub-module
    • this way we still keep the generated code for the purpose of comparing changes to generator
    • allows examples to still use the generated code for the usage demonstration
    • will require examples to depend on main module (go.fd.io/govpp) - specific version or local replace
  2. remove the binapi folder from master branch and use dedicated branch(es) containing only the generated code
    • this way we could generated binapi code for multiple VPP versions, either separate branches for each version: binapi/2202, binapi/2210.. or single branch binapi with directory for each VPP version