mirror of
https://github.com/hanzoai/grpc-web.git
synced 2026-10-30 18:35:37 +00:00
* Replace prototool with buf * Remove dep tooling references * Update protoc and buf versions * Add CI test to ensure files are consistently generated * Update Go version to 1.16 * Remove dependencies added by tool installs in CI * Update module file
18 lines
395 B
Bash
Executable File
18 lines
395 B
Bash
Executable File
#!/bin/bash
|
|
# Installs buf; used for generating and linting protofiles.
|
|
# This script is intended to be run by CI
|
|
|
|
set -ex
|
|
|
|
if [[ -z "$BUF_VER" ]]; then
|
|
echo "BUF_VER environment variable not set"
|
|
exit 1
|
|
fi
|
|
|
|
curl -sSL \
|
|
https://github.com/bufbuild/buf/releases/download/v${BUF_VER}/buf-$(uname -s)-$(uname -m) \
|
|
-o ./buf && \
|
|
chmod +x ./buf
|
|
|
|
echo 'export PATH=$PATH:$PWD' >> $BASH_ENV
|