-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proto add full package name to import (#98)
* proto: Add full package name to go package * make: Add protoc linter * make: Add help target * proto: Update go import path * example: Update example proto and fix tests * flatten: Remove lookup for outdated proto fields
- Loading branch information
Showing
12 changed files
with
3,030 additions
and
1,751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
lint-check: ## runs linters on go code | ||
@gometalinter --disable-all --enable=golint --enable=goimports --enable=vet --enable=nakedret \ | ||
--enable=staticcheck --vendor --skip=resources --skip=testingutils --skip=protobufs --deadline=1m ./...; | ||
.PHONY: help install_protoc_deps proto-lint proto | ||
|
||
help: ## Show this help message. | ||
@echo 'usage: make [target] ...' | ||
@echo | ||
@echo 'targets:' | ||
@egrep '^(.+)\:\ ##\ (.+)' ${MAKEFILE_LIST} | column -t -c 2 -s ':#' | ||
|
||
install-protoc-deps: ## Installs all protobuf dependencies | ||
@go install github.com/ckaznocha/[email protected] | ||
@go install google.golang.org/protobuf/cmd/[email protected] | ||
|
||
proto-lint: ## Lint protos | ||
@protoc --lint_out=. proofs/proto/*.proto | ||
|
||
proto: ## Compile protos | ||
@protoc -Iproofs/proto \ | ||
--go_out=paths=source_relative:proofs/proto \ | ||
proofs/proto/*.proto | ||
|
||
proto-example: | ||
@protoc -I./ \ | ||
--go_out=paths=source_relative:. \ | ||
examples/documents/example.proto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.