Reticulum-Go/scripts/ci/setup-revive.sh

11 lines
377 B
Bash

#!/bin/sh
# Install revive from a tagged module version (requires Go on PATH).
# Usage: setup-revive.sh [module_version]
set -eu
. "$(dirname "$0")/priv.sh"
export PATH="/usr/local/go/bin:$PATH"
VER="${1:-v1.15.0}"
run_priv env PATH="$PATH" GOBIN=/usr/local/bin GOFLAGS= GOPROXY=https://proxy.golang.org,direct go install "github.com/mgechev/revive@${VER}"
command -v revive