-
Notifications
You must be signed in to change notification settings - Fork 149
/
Makefile
48 lines (39 loc) · 1.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.PHONY: tidy
tidy: deps
bazel run @go_sdk//:bin/go -- mod tidy
bazel run @go_sdk//:bin/go -- mod vendor
find vendor -name 'BUILD.bazel' | xargs rm
bazel run //:update_go_deps
bazel run //:buildifier
bazel run //:gazelle
.PHONY: gazelle
gazelle:
bazel run //:gazelle
.PHONY: deps
deps:
bazel build //deps:*
cp -f ./bazel-bin/deps/*.bzl deps/
chmod 0644 deps/*.bzl
bazel run //:buildifier -- deps/
.PHONY: site
site:
bazel build //example/golden:*
cp -f ./bazel-bin/example/golden/*.md docs/
.PHONY: golden_test
golden_test:
bazel test //example/golden:golden_test --test_output=streamed
.PHONY: example_test
example_test:
bazel test //example/golden:proto_compiled_sources_test --test_output=streamed
.PHONY: test
test:
bazel test --keep_going //example/... //pkg/... //plugin/... //language/... //rules/... //toolchain/... \
--deleted_packages=//plugin/grpc-ecosystem/grpc-gateway
.PHONY: get
get:
bazel run @go_sdk//:bin/go -- get github.com/bazelbuild/[email protected]
bazel run @go_sdk//:bin/go -- mod download github.com/bazelbuild/buildtools
bazel run @go_sdk//:bin/go -- mod vendor
update_pnpm_lock:
# nvm use 18
pnpm install --lockfile-only