2d523314d8
Updating linter to latest version, which also updates gosec to latest version to keep on top of updated security checks in source code. Also disable gosec testing for rand.new. Co-Authored-By: Alexander Hughes <Alexander.Hughes@pm.me> Co-Authored-By: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com> Change-Id: I46e71c41597f70150ace6d9611da5a01f93a933d Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
12 lines
324 B
Bash
Executable File
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
|