From f70540bf3014b672fa838b2e527e0e035cb7b151 Mon Sep 17 00:00:00 2001 From: utamori Date: Tue, 6 Aug 2024 20:44:12 +0900 Subject: [PATCH] migrate v2 config Signed-off-by: utamori --- buf.gen.yaml | 11 ++++++----- buf.work.yaml | 3 --- buf.yaml | 17 +++++++++++++++++ proto/buf.yaml | 8 -------- 4 files changed, 23 insertions(+), 16 deletions(-) delete mode 100644 buf.work.yaml create mode 100644 buf.yaml delete mode 100644 proto/buf.yaml diff --git a/buf.gen.yaml b/buf.gen.yaml index a8df1b9..6bafc88 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,12 +1,13 @@ -version: v1 +version: v2 managed: enabled: true - go_package_prefix: - default: connect-examples-go/internal/gen + override: + - file_option: go_package_prefix + value: connect-examples-go/internal/gen plugins: - - name: go + - local: protoc-gen-go out: internal/gen opt: paths=source_relative - - name: connect-go + - local: protoc-gen-connect-go out: internal/gen opt: paths=source_relative diff --git a/buf.work.yaml b/buf.work.yaml deleted file mode 100644 index 1878b34..0000000 --- a/buf.work.yaml +++ /dev/null @@ -1,3 +0,0 @@ -version: v1 -directories: - - proto diff --git a/buf.yaml b/buf.yaml new file mode 100644 index 0000000..73994fd --- /dev/null +++ b/buf.yaml @@ -0,0 +1,17 @@ +version: v2 +modules: + - path: proto + name: buf.build/connectrpc/eliza +lint: + use: + - DEFAULT + except: + - FIELD_NOT_REQUIRED + - PACKAGE_NO_IMPORT_CYCLE + disallow_comment_ignores: true +breaking: + use: + - FILE + except: + - EXTENSION_NO_DELETE + - FIELD_SAME_DEFAULT diff --git a/proto/buf.yaml b/proto/buf.yaml deleted file mode 100644 index 720b8c6..0000000 --- a/proto/buf.yaml +++ /dev/null @@ -1,8 +0,0 @@ -version: v1 -name: buf.build/connectrpc/eliza -lint: - use: - - DEFAULT -breaking: - use: - - FILE