Files
avo/script/bootstrap
Michael McLoughlin e5c9b4e5a6 script: use tools.mod for bootstrap (#175)
Replaces gobin with the preferred tools.mod solution for pinning tool dependencies.

Updates #166
2021-04-10 21:10:42 -07:00

27 lines
691 B
Bash
Executable File

#!/bin/bash -ex
# Standalone version of the asmdecl analysis tool.
go install ./internal/cmd/asmdecl
# Install golangci-lint
golangci_lint_version='v1.23.6'
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.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[@]}"