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
|
|
|
|
2022-04-10 21:03:05 -07:00
|
|
|
# golangci-lint for linting
|
2022-09-05 17:25:03 -07:00
|
|
|
golangci_lint_version='v1.49.0'
|
2023-01-28 11:51:30 -08:00
|
|
|
golangci_install_script="https://raw.githubusercontent.com/golangci/golangci-lint/${golangci_lint_version}/install.sh"
|
2023-03-05 12:32:52 -08:00
|
|
|
curl -sfL "${golangci_install_script}" | sh -s -- -b "$(go env GOPATH)/bin" "${golangci_lint_version}"
|
2018-12-31 20:25:29 -08:00
|
|
|
|
2021-10-29 01:26:54 -07:00
|
|
|
# embedmd required for documentation generation
|
|
|
|
|
go install github.com/campoy/embedmd@v1.0.0
|
2021-04-10 21:10:42 -07:00
|
|
|
|
2021-10-29 01:26:54 -07:00
|
|
|
# covertool for merging coverage reports
|
|
|
|
|
go install github.com/dlespiau/covertool@v0.0.0-20180314162135-b0c4c6d0583a
|
2019-09-15 14:43:44 -07:00
|
|
|
|
2021-10-29 01:26:54 -07:00
|
|
|
# asmfmt for enforcing assembly style
|
2022-04-27 22:42:36 -07:00
|
|
|
go install github.com/klauspost/asmfmt/cmd/asmfmt@v1.3.2
|
2019-01-02 20:41:59 -08:00
|
|
|
|
2022-03-27 15:31:26 -07:00
|
|
|
# goimports for import grouping.
|
|
|
|
|
go install golang.org/x/tools/cmd/goimports@v0.1.10
|
|
|
|
|
|
|
|
|
|
# gofumpt for stricter formatting.
|
2022-09-05 22:15:01 -07:00
|
|
|
go install mvdan.cc/gofumpt@v0.3.1
|
2022-04-24 12:54:07 -07:00
|
|
|
|
|
|
|
|
# yamlfmt for yaml formatting.
|
|
|
|
|
go install github.com/gechr/yamlfmt@v0.0.0-20220216093356-e9288cd48d12
|