Skip to content

Commit

Permalink
chore(core): migrate to latest buf schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dmihalcik-virtru committed Sep 5, 2024
1 parent 8bc0a98 commit 77230f4
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 58 deletions.
34 changes: 17 additions & 17 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
version: v1
version: v2
managed:
enabled: true
go_package_prefix:
default: github.com/opentdf/platform/protocol/go
except:
- buf.build/bufbuild/protovalidate
- buf.build/googleapis/googleapis
- buf.build/grpc-ecosystem/grpc-gateway
disable:
- file_option: go_package
module: buf.build/bufbuild/protovalidate
- file_option: go_package
module: buf.build/googleapis/googleapis
- file_option: go_package
module: buf.build/grpc-ecosystem/grpc-gateway
override:
- file_option: go_package_prefix
value: github.com/opentdf/platform/protocol/go
plugins:
- plugin: buf.build/grpc-ecosystem/gateway:v2.19.1
- remote: buf.build/grpc-ecosystem/gateway:v2.19.1
out: protocol/go
opt:
- paths=source_relative
# dependencies
- plugin: buf.build/protocolbuffers/go:v1.33.0
opt: paths=source_relative
- remote: buf.build/protocolbuffers/go:v1.33.0
out: protocol/go
opt:
- paths=source_relative
- plugin: buf.build/grpc/go:v1.3.0
opt: paths=source_relative
- remote: buf.build/grpc/go:v1.3.0
out: protocol/go
opt:
- paths=source_relative
opt: paths=source_relative
12 changes: 12 additions & 0 deletions buf.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Generated by buf. DO NOT EDIT.
version: v2
deps:
- name: buf.build/bufbuild/protovalidate
commit: e097f827e65240ac9fd4b1158849a8fc
digest: b5:beda657a164abf9d1bac222e352f14d9a4a8c913ccdb7e5c3dfeda097690f60e8edb27b518c2d8e73b70aecb6ac47fdc3654a1f62b9e09c3566cd4e620628cfd
- name: buf.build/googleapis/googleapis
commit: a86849a25cc04f4dbe9b15ddddfbc488
digest: b5:a77a2082c596ee6800a23d8cecd021d316eb10565d6cb94532f2d7c567fe6c9a177b5bb123b51a3acb4f1f18d4f54a6da883afcb682919a137a8a37c020509a2
- name: buf.build/grpc-ecosystem/grpc-gateway
commit: 3f42134f4c564983838425bc43c7a65f
digest: b5:291b947d8ac09492517557e4e72e294788cb8201afc7d0df7bda80fa10931adb60d4d669208a7696bf24f1ecb2a33a16d4c1e766e6f31809248b00343119569b
29 changes: 29 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: v2
modules:
- path: service
deps:
- buf.build/bufbuild/protovalidate
- buf.build/googleapis/googleapis
- buf.build/grpc-ecosystem/grpc-gateway
lint:
use:
- DEFAULT
except:
- FIELD_NOT_REQUIRED
- PACKAGE_NO_IMPORT_CYCLE
- PACKAGE_VERSION_SUFFIX
ignore_only:
PACKAGE_VERSION_SUFFIX:
- service/google/api/annotations.proto
- service/google/api/http.proto
- service/google/protobuf/wrappers.proto
breaking:
use:
- FILE
- PACKAGE
- WIRE
- WIRE_JSON
except:
- EXTENSION_NO_DELETE
- FIELD_SAME_DEFAULT
- PACKAGE_EXTENSION_NO_DELETE
18 changes: 0 additions & 18 deletions service/buf.lock

This file was deleted.

23 changes: 0 additions & 23 deletions service/buf.yaml

This file was deleted.

0 comments on commit 77230f4

Please sign in to comment.