26 lines
700 B
Bash
Executable File
26 lines
700 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
# Standalone version of the assembly checks in go vet.
|
|
go install ./internal/cmd/asmvet
|
|
|
|
# Install golangci-lint
|
|
golangci_lint_version='v1.23.6'
|
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GOPATH/bin ${golangci_lint_version}
|
|
|
|
# Install tools.
|
|
tools=(
|
|
# embedmd required for documentation generation
|
|
github.com/campoy/embedmd
|
|
|
|
# covertool for merging coverage reports
|
|
github.com/dlespiau/covertool
|
|
|
|
# asmfmt for enforcing assembly style
|
|
github.com/klauspost/asmfmt/cmd/asmfmt
|
|
|
|
# gofumports for stricter formatting
|
|
mvdan.cc/gofumpt/gofumports
|
|
)
|
|
|
|
go install -modfile=script/tools.mod "${tools[@]}"
|