forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproto-generate.sh
More file actions
executable file
·27 lines (19 loc) · 926 Bytes
/
proto-generate.sh
File metadata and controls
executable file
·27 lines (19 loc) · 926 Bytes
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
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")/.." # cd to repo root dir
echo "--- yarn in root"
# mutex is necessary since CI runs various yarn installs in parallel
yarn --mutex network --frozen-lockfile --network-timeout 60000
echo "--- cargo install rust-protobuf"
which ./.bin/bin/protoc-gen-rust || cargo install --root .bin protobuf-codegen
echo "--- buf"
GOBIN="$PWD/.bin" go install github.com/bufbuild/buf/cmd/buf
GOBIN="$PWD/.bin" go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
GOBIN="$PWD/.bin" go install golang.org/x/tools/cmd/goimports
GOBIN="$PWD/.bin" go install google.golang.org/protobuf/cmd/protoc-gen-go
GOBIN="$PWD/.bin" ./.bin/buf generate
./.bin/goimports -w ./lib/codeintel/lsiftyped/lsif.pb.go
echo "======================"
echo "NOTE:"
echo "If updating SyntaxKind, make sure to update: client/web/src/lsif/spec.ts"
echo "======================"