vino/tools/install_linter
Alexander Hughes 7ce2fae805 Bump linter from 1.29 to 1.36
Updating linter to latest version, which also updates
gosec to latest version to keep on top of updated security
checks in source code.

Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
Change-Id: I088e4da4cf7efd5bdea33dc5617dcf27f18b6182
2021-01-29 14:40:56 +00: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.36.0
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