Skip to content

Commit

Permalink
refactor(proto): Move genproto to internal and update imports (#350)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
flc1125 authored Nov 7, 2024
1 parent b983be7 commit bfb733c
Show file tree
Hide file tree
Showing 11 changed files with 367 additions and 9 deletions.
4 changes: 2 additions & 2 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: v2
plugins:
- remote: buf.build/protocolbuffers/go
out: genproto
out: internal/genproto
opt: paths=source_relative
- remote: buf.build/grpc/go
out: genproto
out: internal/
opt: paths=source_relative
2 changes: 1 addition & 1 deletion buf.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: v2
modules:
- path: proto
- path: internal/proto
deps:
- buf.build/bufbuild/protovalidate
lint:
Expand Down
2 changes: 0 additions & 2 deletions genproto/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/go-kratos-ecosystem/components/v2
go 1.22

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

require (
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.35.1-20240920164238-5a7b106cbb87.1 // indirect
github.com/VividCortex/ewma v1.2.0 // indirect
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
github.com/bytedance/sonic v1.11.6 // indirect
Expand Down
230 changes: 230 additions & 0 deletions internal/genproto/tests/middleware/protovalidate/v1/person.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bfb733c

Please sign in to comment.