scripts: restore install_build_tools.sh (#4457)

With #4427, the protofiles are generated using a Docker image and thus
`protoc` related binaries are not required. However, `mockgen` and
`golangci-lint` are still being used by our Travis build. This change
restores the file that installs them, and removes `protoc` related files
from the list of installations.
pull/4458/head
Max 1 year ago committed by GitHub
parent 3d8d4557f7
commit 9df6215ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      scripts/install_build_tools.sh
  2. 1
      tools/tools.go

@ -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"

@ -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"
)

Loading…
Cancel
Save