From 8d699382e1c7a8b1f40b8a6ba7561a2810099b02 Mon Sep 17 00:00:00 2001 From: logica0419 <84759675+logica0419@users.noreply.github.com> Date: Sat, 31 Aug 2024 02:08:35 +0900 Subject: [PATCH] using v2 buf schema --- Taskfile.yaml | 7 ------- dev/cspell/dictionary.txt | 1 + proto/buf.gen-backend.yaml | 4 ++-- proto/buf.lock | 10 ++++------ proto/buf.yaml | 2 +- 5 files changed, 8 insertions(+), 16 deletions(-) diff --git a/Taskfile.yaml b/Taskfile.yaml index 7c7c2591..bf04f1b9 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -41,17 +41,10 @@ tasks: desc: bufの初期化 internal: true deps: - - task: check-binary - vars: - BINARY: go - INSTALL_DOC: https://go.dev/doc/install - task: check-binary vars: BINARY: buf INSTALL_DOC: https://buf.build/docs/installation - cmds: - - go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.2 - - go install connectrpc.com/connect/cmd/protoc-gen-connect-go@v1.16.2 init-oapi: desc: OpenAPI Generatorの初期化 diff --git a/dev/cspell/dictionary.txt b/dev/cspell/dictionary.txt index fc113649..8b34ed0c 100644 --- a/dev/cspell/dictionary.txt +++ b/dev/cspell/dictionary.txt @@ -54,6 +54,7 @@ phpmyadmin proto protobuf protoc +protocolbuffers protovalidate signin signout diff --git a/proto/buf.gen-backend.yaml b/proto/buf.gen-backend.yaml index 1a916072..0810c51f 100644 --- a/proto/buf.gen-backend.yaml +++ b/proto/buf.gen-backend.yaml @@ -1,8 +1,8 @@ version: v2 plugins: - - local: protoc-gen-go + - remote: buf.build/protocolbuffers/go out: ../backend/internal/proto opt: paths=source_relative - - local: protoc-gen-connect-go + - remote: buf.build/connectrpc/go out: ../backend/internal/proto opt: paths=source_relative diff --git a/proto/buf.lock b/proto/buf.lock index 3ce75d93..186cc364 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -1,8 +1,6 @@ # Generated by buf. DO NOT EDIT. -version: v1 +version: v2 deps: - - remote: buf.build - owner: bufbuild - repository: protovalidate - commit: e097f827e65240ac9fd4b1158849a8fc - digest: shake256:f19252436fd9ded945631e2ffaaed28247a92c9015ccf55ae99db9fb3d9600c4fdb00fd2d3bd7701026ec2fd4715c5129e6ae517c25a59ba690020cfe80bf8ad + - name: buf.build/bufbuild/protovalidate + commit: a6c49f84cc0f4e038680d390392e2ab0 + digest: b5:e968392e88ff7915adcbd1635d670b45bff8836ec2415d81fc559ca5470a695dbdc30030bad8bc5764647c731079e9e7bba0023ea25c4e4a1672a7d2561d4a19 diff --git a/proto/buf.yaml b/proto/buf.yaml index c40753eb..18e90610 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -1,4 +1,4 @@ -version: v1 +version: v2 deps: - buf.build/bufbuild/protovalidate breaking: