-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
16 additions
and
39 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 |
---|---|---|
|
@@ -20,26 +20,13 @@ GO_LDFLAGS += -X ${GO_PROJECT}/internal/version.BuildDate=${BUILD_DATE} | |
default: help | ||
|
||
tools: ## install tools for developing yorkie | ||
go install github.com/gogo/protobuf/[email protected] | ||
go install github.com/gogo/protobuf/[email protected] | ||
go install github.com/bufbuild/buf/cmd/[email protected] | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install connectrpc.com/connect/cmd/[email protected] | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
|
||
proto: ## generate proto files | ||
protoc \ | ||
-I=./api \ | ||
-I=$(GOPATH)/src \ | ||
--gofast_out=plugins=grpc,\ | ||
Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,\ | ||
Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,\ | ||
Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types,:./api/yorkie/v1 \ | ||
api/yorkie/v1/*.proto | ||
|
||
protoset: ## generate protoset file | ||
protoc \ | ||
-I=./api \ | ||
--descriptor_set_out=yorkie.protoset \ | ||
--include_imports \ | ||
api/yorkie/v1/*.proto | ||
buf generate | ||
|
||
build: ## builds an executable that runs in the current environment | ||
CGO_ENABLED=0 go build -o $(EXECUTABLE) -ldflags "${GO_LDFLAGS}" ./cmd/yorkie | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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