script: switch to go install for tools (#210)

This commit is contained in:
Michael McLoughlin
2021-10-29 01:26:54 -07:00
committed by GitHub
parent 9c70781236
commit c48d61faf6
3 changed files with 8 additions and 74 deletions

View File

@@ -8,19 +8,14 @@ golangci_lint_version='v1.23.6'
golangci_install_script="https://raw.githubusercontent.com/golangci/golangci-lint/${golangci_lint_version}/install.sh"
curl -sfL "${golangci_install_script}" | sh -s -- -b "$GOPATH/bin" "${golangci_lint_version}"
# Install tools.
tools=(
# embedmd required for documentation generation
github.com/campoy/embedmd
# embedmd required for documentation generation
go install github.com/campoy/embedmd@v1.0.0
# covertool for merging coverage reports
github.com/dlespiau/covertool
# covertool for merging coverage reports
go install github.com/dlespiau/covertool@v0.0.0-20180314162135-b0c4c6d0583a
# asmfmt for enforcing assembly style
github.com/klauspost/asmfmt/cmd/asmfmt
# asmfmt for enforcing assembly style
go install github.com/klauspost/asmfmt/cmd/asmfmt@v1.3.1
# gofumports for stricter formatting
mvdan.cc/gofumpt/gofumports
)
go install -modfile=script/tools.mod "${tools[@]}"
# gofumports for stricter formatting
go install mvdan.cc/gofumpt/gofumports@v0.0.0-20200412215918-a91da47f375c