VOL-1855: Support for techprofile
Also now use voltha-protos repo similar to other 2.x builds
Also a go fmt
Tested with:
voltha-go TP patch: https://gerrit.opencord.org/#/c/14767/
openolt TP patch: https://gerrit.opencord.org/#/c/14771/
Change-Id: I327573af6cd7f54cdfcb9fb4bdbdc24d960f96be
diff --git a/Makefile b/Makefile
index 48f408b..3357de7 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@
DOCKER_LABEL_COMMIT_DATE ?= $(shell git diff-index --quiet HEAD -- && git show -s --format=%cd --date=iso-strict HEAD || echo "unknown" )
DOCKER_LABEL_BUILD_DATE ?= $(shell date -u "+%Y-%m-%dT%H:%M:%SZ")
-bbsim: dep protos/openolt.pb.go bbsimapi
+bbsim: dep bbsimapi
GO111MODULE=on go build -i -v -o $@
dep:
@@ -37,13 +37,6 @@
GO111MODULE=off go get -v github.com/google/gopacket
GO111MODULE=on go mod download all
-protos/openolt.pb.go: openolt.proto
- @protoc -I . \
- -I${GOPATH}/src \
- -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
- --go_out=plugins=grpc:protos/ \
- $<
-
bbsimapi: api/bbsim.proto
@protoc -I ./api \
-I${GOPATH}/src \
@@ -61,7 +54,7 @@
--swagger_out=logtostderr=true,allow_delete_body=true:api/swagger/ \
bbsim.proto
-test: dep protos/openolt.pb.go bbsimapi
+test: dep bbsimapi
GO111MODULE=on go test -v ./...
GO111MODULE=on go test -v ./... -cover