2018-12-05 00:27:42 -08:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
2021-04-18 18:37:56 -07:00
|
|
|
# Standalone version of the assembly checks in go vet.
|
|
|
|
|
go install ./internal/cmd/asmvet
|
2019-01-13 11:40:44 -08:00
|
|
|
|
2018-12-05 00:27:42 -08:00
|
|
|
# Install golangci-lint
|
2020-04-25 01:27:57 -07:00
|
|
|
golangci_lint_version='v1.23.6'
|
2021-10-27 23:07:44 -07:00
|
|
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GOPATH/bin ${golangci_lint_version}
|
2018-12-31 20:25:29 -08:00
|
|
|
|
2021-04-10 21:10:42 -07:00
|
|
|
# Install tools.
|
|
|
|
|
tools=(
|
|
|
|
|
# embedmd required for documentation generation
|
|
|
|
|
github.com/campoy/embedmd
|
|
|
|
|
|
|
|
|
|
# covertool for merging coverage reports
|
|
|
|
|
github.com/dlespiau/covertool
|
2019-09-15 14:43:44 -07:00
|
|
|
|
2021-04-10 21:10:42 -07:00
|
|
|
# asmfmt for enforcing assembly style
|
|
|
|
|
github.com/klauspost/asmfmt/cmd/asmfmt
|
2019-01-02 20:41:59 -08:00
|
|
|
|
2021-04-10 21:10:42 -07:00
|
|
|
# gofumports for stricter formatting
|
|
|
|
|
mvdan.cc/gofumpt/gofumports
|
|
|
|
|
)
|
2019-01-10 21:31:04 -08:00
|
|
|
|
2021-04-10 21:10:42 -07:00
|
|
|
go install -modfile=script/tools.mod "${tools[@]}"
|