airshipctl/tools/install_linter
Ian Howell b669efb95b Uplift linter
The golangci-lint linter runs into issue [0] when linting airshipctl
with go1.14. This uplifts the linter to a version in which the issue is
fixed.

[0] https://github.com/golangci/golangci-lint/issues/893

Change-Id: I50d3c4ab2533c1d14d01effed21906f0ef79aafc
2020-03-04 09:19:19 -06:00

12 lines
324 B
Bash
Executable File

#!/bin/bash
set -x
tools_bin_dir="${BASH_SOURCE%/*}"
download_url=https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh
version=v1.23.8
if ! curl -sfL "$download_url" | sh -s -- -b "$tools_bin_dir/bin" "$version"; then
printf "Something went wrong while installing golangci-lint\n" 1>&2
exit 1
fi