Skip to content

Commit

Permalink
Migrate to buf v2 config format
Browse files Browse the repository at this point in the history
I used `buf config migrate` for the migration.
  • Loading branch information
ymmt2005 committed May 20, 2024
1 parent 2fab98f commit 424c6dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
16 changes: 11 additions & 5 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 424c6dd

Please sign in to comment.