chore: more faq when migrate to buf
parent
2004aa9042
commit
ca39ece315
|
@ -62,4 +62,4 @@ plugins:
|
||||||
buf format -w
|
buf format -w
|
||||||
buf mod update
|
buf mod update
|
||||||
buf generate
|
buf generate
|
||||||
</code></pre><p>Run <code>make gen</code> to get fun of course.<h2>FAQ</h2><p>If use <code>vendor</code>:<ul><li>Replace <code>buf generate</code> with <code>buf generate --exclude-path vendor</code>.<li>Replace <code>buf format -w</code> with <code>buf format -w --exclude-path vendor</code>.</ul><p>The last step is delete <code>prototool.yaml</code>.<h2>Thanks</h2><ul><li><a href=https://github.com/uber/prototool>uber/prototool</a><li><a href=https://github.com/bufbuild/buf>bufbuild/buf</a></ul><a href=mailto:hauvipapro+posts@gmail.com>Feel free to ask me via email</a>
|
</code></pre><p>Run <code>make gen</code> to get fun of course.<h2>FAQ</h2><p>If use <code>vendor</code>:<ul><li>Replace <code>buf generate</code> with <code>buf generate --exclude-path vendor</code>.<li>Replace <code>buf format -w</code> with <code>buf format -w --exclude-path vendor</code>.</ul><p>Replace <code>import "third_party/googleapis/google/api/annotations.proto";</code> with <code>import "google/api/annotations.proto";</code><p>Delete <code>security_definitions</code>, <code>security</code>, in <code>option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger)</code>.<p>The last step is delete <code>prototool.yaml</code>.<h2>Thanks</h2><ul><li><a href=https://github.com/uber/prototool>uber/prototool</a><li><a href=https://github.com/bufbuild/buf>bufbuild/buf</a></ul><a href=mailto:hauvipapro+posts@gmail.com>Feel free to ask me via email</a>
|
|
@ -137,6 +137,10 @@ If use `vendor`:
|
||||||
- Replace `buf generate` with `buf generate --exclude-path vendor`.
|
- Replace `buf generate` with `buf generate --exclude-path vendor`.
|
||||||
- Replace `buf format -w` with `buf format -w --exclude-path vendor`.
|
- Replace `buf format -w` with `buf format -w --exclude-path vendor`.
|
||||||
|
|
||||||
|
Replace `import "third_party/googleapis/google/api/annotations.proto";` with `import "google/api/annotations.proto";`
|
||||||
|
|
||||||
|
Delete `security_definitions`, `security`, in `option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger)`.
|
||||||
|
|
||||||
The last step is delete `prototool.yaml`.
|
The last step is delete `prototool.yaml`.
|
||||||
|
|
||||||
## Thanks
|
## Thanks
|
||||||
|
|
Loading…
Reference in New Issue