Skip to content

Commit

Permalink
deftree 清理
Browse files Browse the repository at this point in the history
  • Loading branch information
venjiang committed Oct 28, 2020
1 parent b3ee63b commit 679f6e4
Show file tree
Hide file tree
Showing 24 changed files with 55 additions and 1,759 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ brews:
# Packages your package depends on.
dependencies:
- name: protobuf
- name: protoc-gen-gogo
- name: protoc-gen-gogofaster
- name: protoc-gen-go
- name: protoc-gen-gofaster

# So you can `brew test` your formula.
# Default is empty.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LABEL maintainer="[email protected]"

RUN apk update && apk upgrade && apk add --no-cache protobuf git

RUN go version && go get -u -v github.com/gogo/protobuf/protoc-gen-gogofaster
RUN go version && go get -u -v github.com/golang/protobuf/protoc-gen-gofaster

COPY ./ $GOPATH/src/github.com/teamlint/baron

Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ VERSION_DATE := $(shell $(MAKEFILE_PATH)/commit_date.sh)
default: baron

dependencies:
go get -u github.com/gogo/protobuf/protoc-gen-gogo@21df5aa0e680850681b8643f0024f92d3b09930c
go get -u github.com/gogo/protobuf/protoc-gen-gogofaster@21df5aa0e680850681b8643f0024f92d3b09930c
go get -u github.com/gogo/protobuf/proto@21df5aa0e680850681b8643f0024f92d3b09930c
go get -u github.com/golang/protobuf/protoc-gen-go@21df5aa0e680850681b8643f0024f92d3b09930c
go get -u github.com/golang/protobuf/protoc-gen-gofaster@21df5aa0e680850681b8643f0024f92d3b09930c
go get -u github.com/golang/protobuf/proto@21df5aa0e680850681b8643f0024f92d3b09930c
go get -u github.com/kevinburke/go-bindata/go-bindata

# Generate go files containing the all template files in []byte form
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,11 @@ if oneofType.Type.Enum == nil && oneofType.Type.Map == nil {
```

## TODO
- 清理protoc-gen-gogo插件相关引用
- 支持标量切片类型
- 清理protoc-gen-go插件相关引用
- 完善 deftree/googlethirdparty
- server 增加初始化方法
- HTTP Transport 是否考虑使用[gRPC Gateway](https://github.com/grpc-ecosystem/grpc-gateway) 替换?
gGRPC Gateway使用自有mux提供服务, 不能再使用 Go-kit 的http传输
- 不覆盖代码
- 支持标量切片类型

## 参考
- https://github.com/solo726/bookinfo 使用go-kit实现微服务,truss自动生成go-kit代码
Expand Down
12 changes: 12 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,15 @@ tasks:
cmds:
- go run main.go
silent: false

test:
desc: 'baron test generator'
dir: ./_example
cmds:
- rm -rf ./start/start.pb.go
- rm -rf ./start/start_grpc.pb.go
- rm -rf ./start/start.pb.baron.go
- task: install
- task: gen-start
- task: run-start
silent: false
2 changes: 1 addition & 1 deletion cmd/_integration-tests/transport/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
pb "github.com/teamlint/baron/cmd/_integration-tests/transport/proto"
httpclient "github.com/teamlint/baron/cmd/_integration-tests/transport/transportpermutations-service/svc/client/http"

"github.com/gogo/protobuf/jsonpb"
"github.com/golang/protobuf/jsonpb"
"github.com/moul/http2curl"
"github.com/pkg/errors"

Expand Down
34 changes: 0 additions & 34 deletions deftree/gogothirdparty/LICENSE

This file was deleted.

37 changes: 0 additions & 37 deletions deftree/gogothirdparty/Makefile

This file was deleted.

169 changes: 0 additions & 169 deletions deftree/gogothirdparty/doc.go

This file was deleted.

Loading

0 comments on commit 679f6e4

Please sign in to comment.