5b25f0bd00
golangci-lint is GPL-licensed, and its presence in go.mod might lead people to believe that airshipctl links against a GPL-licensed dependency. In reality airshipctl does not link against golangci-lint (thanks to the // +build tools comment), but this change helps to avoid that misconception from being made. Change-Id: I95c223a7f6597e1aa07a025ed2cebbbd6bd7cbd8
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.21.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
|