Skip to content

Commit

Permalink
build(buf): update to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
NefixEstrada committed Oct 10, 2024
1 parent 9c74c82 commit 1d49818
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ check-old-frontend:
check-protobuf:
stage: lint
image:
name: bufbuild/buf:1.31.0
name: bufbuild/buf:1.44.0
entrypoint: [""]
script:
- buf lint
Expand Down
23 changes: 12 additions & 11 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
version: v1
version: v2
managed:
enabled: true
go_package_prefix:
default: gitlab.com/isard/isardvdi/pkg/gen/proto/go
override:
- file_option: go_package_prefix
value: gitlab.com/isard/isardvdi/pkg/gen/proto/go
plugins:
- name: doc
- local: protoc-gen-doc
out: pkg/gen/proto/docs
opt: markdown,index.md,source_relative
- name: go
- local: protoc-gen-go
out: pkg/gen/proto/go
opt: paths=source_relative
- name: go-grpc
- local: protoc-gen-go-grpc
out: pkg/gen/proto/go
opt: paths=source_relative
- plugin: python
- protoc_builtin: python
out: pkg/gen/proto/python
- plugin: pyi
- protoc_builtin: pyi
out: pkg/gen/proto/python
- plugin: buf.build/grpc/python:v1.62.1
- remote: buf.build/grpc/python:v1.62.1
out: pkg/gen/proto/python
- plugin: python_betterproto
- local: protoc-gen-python_betterproto
out: pkg/gen/proto/python_old
- plugin: es
- local: protoc-gen-es
out: pkg/gen/proto/js
3 changes: 0 additions & 3 deletions buf.work.yaml

This file was deleted.

13 changes: 13 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: v2
modules:
- path: pkg/proto
lint:
use:
- STANDARD
disallow_comment_ignores: true
breaking:
use:
- FILE
except:
- EXTENSION_NO_DELETE
- FIELD_SAME_DEFAULT
7 changes: 0 additions & 7 deletions pkg/proto/buf.yaml

This file was deleted.

0 comments on commit 1d49818

Please sign in to comment.