Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: namespace configuration #324

Merged
merged 12 commits into from
Nov 26, 2020
Prev Previous commit
Next Next commit
Merge branch 'zanzibar' into namespace-config
# Conflicts:
#	Makefile
  • Loading branch information
zepatrik committed Nov 20, 2020
commit 07462c2ef82ccddb35211829a5294c04bdef61d0
31 changes: 28 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,31 @@ docker: deps
rm keto
packr clean

.PHONY: gen-protobuf
gen-protobuf:
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative internal/relationtuple/*.proto
#
# Generate APIs and client stubs from the definitions
#
.PHONY: buf-gen
buf-gen:
buf generate \
--config buf/api/buf.yaml \
--template buf/api/buf.gen.yaml \
&& \
echo "TODO: generate gapic client at ./client" \
&& \
echo "All code was generated successfully!"

#
# Lint API definitions
#
.PHONY: buf-lint
buf-lint:
buf check lint \
--config buf/api/buf.yaml \
&& \
echo "All lint checks passed successfully!"

#
# Generate after linting succeeded
#
.PHONY: buf
buf: buf-lint buf-gen
You are viewing a condensed version of this merge commit. You can view the full changes here.