| 1 | #!/bin/bash -ex |
| 2 | |
| 3 | # Standalone version of the assembly checks in go vet. |
| 4 | go install ./internal/cmd/asmvet |
| 5 | |
| 6 | # golangci-lint for linting |
| 7 | golangci_lint_version='v1.55.2' |
| 8 | golangci_install_script="https://raw.githubusercontent.com/golangci/golangci-lint/${golangci_lint_version}/install.sh" |
| 9 | curl -sfL "${golangci_install_script}" | sh -s -- -b "$(go env GOPATH)/bin" "${golangci_lint_version}" |
| 10 | |
| 11 | # embedmd required for documentation generation |
| 12 | go install github.com/campoy/[email protected] |
| 13 | |
| 14 | # asmfmt for enforcing assembly style |
| 15 | go install github.com/klauspost/asmfmt/cmd/[email protected] |
| 16 | |
| 17 | # goimports for import grouping. |
| 18 | go install golang.org/x/tools/cmd/[email protected] |
| 19 | |
| 20 | # gofumpt for stricter formatting. |
| 21 | go install mvdan.cc/[email protected] |
| 22 | |
| 23 | # yamlfmt for yaml formatting. |
| 24 | go install github.com/gechr/[email protected] |