-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add process module to readme * Add grpcstar_binary macro/rule * Update to bazel 6.2.1, rules go v0.39.1 * Use makefile variable for bazel * Avoid nil pointer dereference if certs not given * Add stage to perform bazel runs * Remove tls example for now (re-introduce in separate commit)
- Loading branch information
Showing
15 changed files
with
225 additions
and
331 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 +1 @@ | ||
5.1.1 | ||
6.2.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,38 @@ | ||
BAZEL=bzl | ||
|
||
.PHONY: build | ||
build: | ||
bazel build ... | ||
$(BAZEL) build ... | ||
|
||
.PHONY: test | ||
test: | ||
bazel test ... --runs_per_test=30 | ||
$(BAZEL) test ... --runs_per_test=30 | ||
|
||
.PHONY: tidy | ||
tidy: | ||
go mod tidy | ||
bazel run update_go_repositories | ||
bazel run gazelle | ||
$(BAZEL) run update_go_repositories | ||
$(BAZEL) run gazelle | ||
|
||
golden: | ||
bazel run //cmd/grpcstar:grpcstar_test \ | ||
$(BAZEL) run //cmd/grpcstar:grpcstar_test \ | ||
--action_env=NOGODEBUG=http2debug=2 \ | ||
-- \ | ||
--update | ||
|
||
.PHONY: serve | ||
serve: build | ||
GODEBUG=http2debug=2 \ | ||
bazel-bin/cmd/grpcstar/grpcstar_/grpcstar \ | ||
-p bazel-bin/example/routeguide/routeguide_proto_descriptor.pb \ | ||
-f cmd/grpcstar/testdata/routeguide.grpc.star | ||
|
||
.PHONY: routeguide_proto_descriptor | ||
routeguide_proto_descriptor: | ||
bazel build //example/routeguide:routeguide_proto_descriptor | ||
$(BAZEL) build //example/routeguide:routeguide_proto_descriptor | ||
cp -f bazel-bin/example/routeguide/routeguide_proto_descriptor.pb pkg/starlarkgrpc/ | ||
cp -f bazel-bin/example/routeguide/routeguide_proto_descriptor.pb pkg/protodescriptorset/ | ||
|
||
.PHONY: plugin_proto_descriptor | ||
plugin_proto_descriptor: | ||
bazel build @protoapis//google/protobuf/compiler:plugin_descriptor | ||
$(BAZEL) build @protoapis//google/protobuf/compiler:plugin_descriptor | ||
cp -f bazel-bin/external/protoapis/google/protobuf/compiler/plugin_descriptor.pb cmd/protoc-gen-starlark | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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.