2018-08-01 22:37:21 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-06-26 15:27:53 +00:00
|
|
|
GOLANGCI_LINT_VERSION="v1.27.0"
|
|
|
|
GO_MD2MAN_VERSION="v1.0.10"
|
|
|
|
|
2018-08-01 22:37:21 +00:00
|
|
|
#
|
|
|
|
# Install developer tools to $GOBIN (or $GOPATH/bin if unset)
|
|
|
|
#
|
|
|
|
set -eu -o pipefail
|
|
|
|
|
2020-06-26 15:27:53 +00:00
|
|
|
# Enable Go modules
|
|
|
|
export GO111MODULE=on
|
|
|
|
|
2020-01-29 14:53:03 +00:00
|
|
|
# prevent updating go.mod of the project
|
|
|
|
cd /tmp
|
2020-06-26 15:27:53 +00:00
|
|
|
go get "github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION}"
|
|
|
|
go get "github.com/cpuguy83/go-md2man@${GO_MD2MAN_VERSION}"
|