From 424c6dd10e447f0c69bf9f38a7947d6d8614e0cd Mon Sep 17 00:00:00 2001 From: ymmt Date: Mon, 20 May 2024 00:38:27 +0000 Subject: [PATCH] Migrate to buf v2 config format I used `buf config migrate` for the migration. --- Makefile | 2 +- buf.yaml | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a6f197d..d0e5fc9 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Makefile for compiling protobuf files # Tool versions -BUF_VERSION = 1.30.0 +BUF_VERSION = 1.32.0 GO_VERSION := $(shell awk '/^go / {print $$2}' go.mod) PROTOC_GEN_GO_VERSION := $(shell awk '/google.golang.org\/protobuf/ {print substr($$NF, 2)}' go.mod) diff --git a/buf.yaml b/buf.yaml index dd2dc00..4c61b4c 100644 --- a/buf.yaml +++ b/buf.yaml @@ -1,11 +1,17 @@ -version: v1 +version: v2 name: buf.build/cybozu/protobuf -breaking: - use: - - FILE lint: use: - BASIC except: - - ENUM_PASCAL_CASE - ENUM_NO_ALLOW_ALIAS + - ENUM_PASCAL_CASE + - FIELD_NOT_REQUIRED + - PACKAGE_NO_IMPORT_CYCLE + disallow_comment_ignores: true +breaking: + use: + - FILE + except: + - EXTENSION_NO_DELETE + - FIELD_SAME_DEFAULT