Files
grpc-web/install-buf.sh
Johan Brandhorst-SatzkornandGitHub 313febfc6d Replace prototool with buf (#847)
* 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
2021-03-17 10:39:01 +00:00

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