28 lines
946 B
Bash
Executable File
28 lines
946 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
# Standalone version of the assembly checks in go vet.
|
|
go install ./internal/cmd/asmvet
|
|
|
|
# golangci-lint for linting
|
|
golangci_lint_version='v1.49.0'
|
|
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}"
|
|
|
|
# embedmd required for documentation generation
|
|
go install github.com/campoy/embedmd@v1.0.0
|
|
|
|
# covertool for merging coverage reports
|
|
go install github.com/dlespiau/covertool@v0.0.0-20180314162135-b0c4c6d0583a
|
|
|
|
# asmfmt for enforcing assembly style
|
|
go install github.com/klauspost/asmfmt/cmd/asmfmt@v1.3.2
|
|
|
|
# goimports for import grouping.
|
|
go install golang.org/x/tools/cmd/goimports@v0.1.10
|
|
|
|
# gofumpt for stricter formatting.
|
|
go install mvdan.cc/gofumpt@v0.2.1
|
|
|
|
# yamlfmt for yaml formatting.
|
|
go install github.com/gechr/yamlfmt@v0.0.0-20220216093356-e9288cd48d12
|