protopatch icon indicating copy to clipboard operation
protopatch copied to clipboard

Added Buf files

Open Jonathan-Landeed opened this issue 1 year ago • 3 comments

Adding these files allows the project to be uploaded to the buf.build BSR. Apparently it won't work as a remote plugin, but it's still nice as a dependency for import "patch/go.proto"; in Buf projects.

See https://github.com/bufbuild/plugins/issues/858

Jonathan-Landeed avatar Oct 05 '24 12:10 Jonathan-Landeed

Thanks! Is this a registry of Buf plugins? Should I create a username there to register this?

ydnar avatar Oct 05 '24 14:10 ydnar

I created #174 which replicates this PR using an official distribution at https://buf.build/alta/protopatch.

Do you have a sense for what should be in the README to document how Buf users would use this?

  - local: protoc-gen-go-patch
    out: gen
    opt:
      - paths=source_relative
      - plugin=go

ydnar avatar Oct 05 '24 15:10 ydnar

If you want to grab the changes from #174 and incorporate them here, I'd also like to see tests (local, CI) that validate Buf works.

ydnar avatar Oct 05 '24 16:10 ydnar