#!/bin/bash -ex # Install dependencies. go mod download # Standalone version of the asmdecl analysis tool. go install ./internal/cmd/asmdecl # Install golangci-lint golangci_lint_version='v1.18.0' curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin ${golangci_lint_version} # Turn off modules for tools install. export GO111MODULE=off # 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