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
|
2024-01-07 12:56:20 -08:00
|
|
|
golangci_lint_version='v1.55.2'
|
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
|
|
|
# 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.
|
2023-03-05 20:39:41 -08:00
|
|
|
go install golang.org/x/tools/cmd/goimports@v0.6.0
|
2022-03-27 15:31:26 -07:00
|
|
|
|
|
|
|
|
# gofumpt for stricter formatting.
|
2023-03-05 20:39:41 -08:00
|
|
|
go install mvdan.cc/gofumpt@v0.4.0
|
2022-04-24 12:54:07 -07:00
|
|
|
|
|
|
|
|
# yamlfmt for yaml formatting.
|
2023-03-05 20:39:41 -08:00
|
|
|
go install github.com/gechr/yamlfmt@v0.0.0-20221202235948-8c26683ac3e8
|