mirror of
https://github.com/Quad4-Software/Reticulum-Go
synced 2026-08-29 23:48:44 -04:00
13 lines
403 B
Bash
13 lines
403 B
Bash
|
|
#!/bin/sh
|
||
|
|
# Install staticcheck from a tagged module version (requires Go on PATH).
|
||
|
|
# Usage: setup-staticcheck.sh [module_version]
|
||
|
|
set -eu
|
||
|
|
|
||
|
|
. "$(dirname "$0")/priv.sh"
|
||
|
|
|
||
|
|
export PATH="/usr/local/go/bin:$PATH"
|
||
|
|
VER="${1:-v0.6.1}"
|
||
|
|
run_priv env PATH="$PATH" GOBIN=/usr/local/bin GOFLAGS= GOPROXY=https://proxy.golang.org,direct \
|
||
|
|
go install "honnef.co/go/tools/cmd/staticcheck@${VER}"
|
||
|
|
command -v staticcheck
|