-
Notifications
You must be signed in to change notification settings - Fork 728
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move tool installs to a hack script (#1177)
This move unecessary tooling tasks out of the Makefile and matches the setup in the tidb repo
- Loading branch information
Showing
3 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# This script generates tools.json | ||
# It helps record what releases/branches are being used | ||
which retool >/dev/null || go get github.com/twitchtv/retool | ||
|
||
# tool environment | ||
# check runner | ||
retool add gopkg.in/alecthomas/gometalinter.v2 v2.0.5 | ||
# check spelling | ||
retool add github.com/client9/misspell/cmd/misspell v0.3.4 | ||
# checks correctness | ||
retool add github.com/gordonklaus/ineffassign 7bae11eba15a3285c75e388f77eb6357a2d73ee2 | ||
retool add honnef.co/go/tools/cmd/megacheck master | ||
retool add github.com/dnephin/govet 4a96d43e39d340b63daa8bc5576985aa599885f6 | ||
# slow checks | ||
retool add github.com/kisielk/errcheck v1.1.0 | ||
# linter | ||
retool add github.com/mgechev/revive 7773f47324c2bf1c8f7a5500aff2b6c01d3ed73b | ||
retool add github.com/securego/gosec/cmd/gosec 1.0.0 |