Skip to content

Commit

Permalink
Commit validate.pb.go (#10)
Browse files Browse the repository at this point in the history
Fixes #9.

Signed-off-by: Kuat Yessenov <[email protected]>
  • Loading branch information
kyessenov authored and htuch committed Nov 10, 2017
1 parent f3332cb commit ef99a8b
Show file tree
Hide file tree
Showing 3 changed files with 3,000 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
bazel-*

!vendor/*
validate/validate.pb.go

/tests/harness/cases/go/
/tests/harness/harness.pb.go
Expand Down
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ quick:
tests:
# runs all tests against the package with race detection and coverage percentage
go test -race -cover
# tests validate proto generation
bazel build //validate:go_default_library && diff $$(bazel info bazel-genfiles)/validate/validate.pb.go validate/validate.pb.go

.PHONY: cover
cover:
Expand Down Expand Up @@ -77,10 +79,6 @@ testcases:
--validate_out="lang=go:./go" \
`find . -name "*.proto"`

validate/validate.pb.go:
# generates the proto extension in Go
cd validate && protoc -I . --go_out=. validate.proto && cp github.com/lyft/protoc-gen-validate/validate/validate.pb.go .

tests/harness/harness.pb.go:
# generates the test harness protos
cd tests/harness && protoc -I . --go_out=. harness.proto
Expand Down
Loading

0 comments on commit ef99a8b

Please sign in to comment.