Open stswidwinski opened 1 year ago
Linked to a previous issue which discusses problems with updating Buf: https://github.com/hashicorp/nomad/issues/10293
Thanks for that context @jrasell. I'm going to mark this one for roadmapping, as it's definitely something we want to get fixed at some point.
Proposal
I believe that the handling of protobuf files within Nomad it difficult to use them in a separate project. This seems quite acute for anything which would want to reuse the existing data structures in the extensions supported by Nomad (such as the task driver or the device driver).
One example would be a project which implements a Task Driver, which wants to extend and reuse pieces of the Nomad-provided shared executor. It would be quite natural to write something like:
However, this is not possible to do without manual modifications of the Nomad repository for a few reasons:
buf.yaml
which is currently used is hidden intools/buf
and as such does not mark the root of a module (see: https://buf.build/docs/bsr/module/manage)buf
being used in Nomad is of version0.36.0
which is quite out of date and usesv1beta1
version which is ill-documented and hard to reason aboutIt would be great if:
Use-cases
Any application which attempts to use or extend the existing protobufs of Nomad
Attempted Solutions
There exist work-arounds which are primarily centered around manual munging of the directory structure.