ebd3f44146
This commit updates golangci-lint to v1.44.0. It also removes deprecated golint in favour of revive linter. Finally, it addresses an issue reported by linter. Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
15 lines
319 B
Bash
Executable file
15 lines
319 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
GOLANGCI_LINT_VERSION="v1.44.0"
|
|
|
|
#
|
|
# Install developer tools to $GOBIN (or $GOPATH/bin if unset)
|
|
#
|
|
set -eu -o pipefail
|
|
|
|
# Enable Go modules
|
|
export GO111MODULE=on
|
|
|
|
# prevent updating go.mod of the project
|
|
cd /tmp
|
|
go get "github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION}"
|