diff --git a/scripts/install_build_tools.sh b/scripts/install_build_tools.sh new file mode 100755 index 0000000000..a5537a5406 --- /dev/null +++ b/scripts/install_build_tools.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +set -eu + +unset -v progdir +case "${0}" in +/*) progdir="/";; +*/*) progdir="${0%/*}";; +*) progdir="."; +esac + +sed -n 's/^ _ "\([^"]*\)"$/\1/p' "${progdir}/../tools/tools.go" | \ + xargs "${progdir}/goget.sh" \ No newline at end of file diff --git a/tools/tools.go b/tools/tools.go index dd98334afc..e926f15a25 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -11,6 +11,5 @@ package tools // scripts/install_build_tools.sh parses these imports to install them. import ( _ "github.com/golang/mock/mockgen" - _ "github.com/golang/protobuf/protoc-gen-go" _ "github.com/golangci/golangci-lint/cmd/golangci-lint" )