From ca39ece315c42eb0542c9be239d9c28fa668992d Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Tue, 19 Jul 2022 16:06:55 +0700 Subject: [PATCH] chore: more faq when migrate to buf --- docs/2022-07-19-migrate-to-buf.html | 2 +- posts/2022-07-19-migrate-to-buf.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/2022-07-19-migrate-to-buf.html b/docs/2022-07-19-migrate-to-buf.html index b85c572..2775e45 100644 --- a/docs/2022-07-19-migrate-to-buf.html +++ b/docs/2022-07-19-migrate-to-buf.html @@ -62,4 +62,4 @@ plugins: buf format -w buf mod update buf generate -

Run make gen to get fun of course.

FAQ

If use vendor:

The last step is delete prototool.yaml.

Thanks

Feel free to ask me via email \ No newline at end of file +

Run make gen to get fun of course.

FAQ

If use 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.

Thanks

Feel free to ask me via email \ No newline at end of file diff --git a/posts/2022-07-19-migrate-to-buf.md b/posts/2022-07-19-migrate-to-buf.md index 3ee3068..0a43129 100644 --- a/posts/2022-07-19-migrate-to-buf.md +++ b/posts/2022-07-19-migrate-to-buf.md @@ -137,6 +137,10 @@ If use `vendor`: - Replace `buf generate` with `buf generate --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`. ## Thanks