Skip to content

Commit bfb733c

Browse files
authored
refactor(proto): Move genproto to internal and update imports (#350)
* refactor(proto): Move genproto to internal and update imports * refactor(proto): Move genproto to internal and update imports * refactor(proto): Move genproto to internal and update imports
1 parent b983be7 commit bfb733c

File tree

11 files changed

+367
-9
lines changed

11 files changed

+367
-9
lines changed

buf.gen.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: v2
22
plugins:
33
- remote: buf.build/protocolbuffers/go
4-
out: genproto
4+
out: internal/genproto
55
opt: paths=source_relative
66
- remote: buf.build/grpc/go
7-
out: genproto
7+
out: internal/
88
opt: paths=source_relative

buf.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: v2
22
modules:
3-
- path: proto
3+
- path: internal/proto
44
deps:
55
- buf.build/bufbuild/protovalidate
66
lint:

genproto/.gitignore

-2
This file was deleted.

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/go-kratos-ecosystem/components/v2
33
go 1.22
44

55
require (
6+
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.35.1-20240920164238-5a7b106cbb87.1
67
entgo.io/ent v0.14.0
78
github.com/bufbuild/protovalidate-go v0.7.2
89
github.com/cheggaaa/pb/v3 v3.1.5
@@ -37,7 +38,6 @@ require (
3738
)
3839

3940
require (
40-
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.35.1-20240920164238-5a7b106cbb87.1 // indirect
4141
github.com/VividCortex/ewma v1.2.0 // indirect
4242
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
4343
github.com/bytedance/sonic v1.11.6 // indirect

internal/genproto/tests/middleware/protovalidate/v1/person.pb.go

+230
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)