Files
avo/script/bootstrap
Michael McLoughlin bb615f61ce all: formatting (#93)
Enforce stricter formatting and import grouping with gofumports.
2019-07-30 18:40:47 -07:00

26 lines
737 B
Bash
Executable File

#!/bin/bash -ex
# Limit dependencies to golang.org/x repos
go get -u \
golang.org/x/arch/x86/... \
golang.org/x/tools/go/...
# Standalone version of the asmdecl analysis tool.
go install ./internal/cmd/asmdecl
# Install golangci-lint
golangci_lint_version='v1.17.1'
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin ${golangci_lint_version}
# embedmd required for documentation generation
go get -u github.com/campoy/embedmd
# covertool for merging coverage reports
go get -u github.com/dlespiau/covertool
# asmfmt for enforcing assembly style
go get -u github.com/klauspost/asmfmt/cmd/asmfmt
# gofumports for stricter formatting
go get -u mvdan.cc/gofumpt/gofumports