Files
docker-nginx-full/scripts/install-gotools.sh
T
Jamie Curnow dd72bc45b1 Major updates
- OpenResty v1.29.2.4
  Using the github tag since this fixes a fresh CVE-2026-42945
- Updated base debian image to trixie
- Lua v5.5.0
- Luarocks v3.13.0
- Removed unused install script for Crowsec
2026-05-18 10:55:26 +10:00

46 lines
1.2 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
set -e
BLUE='\E[1;34m'
CYAN='\E[1;36m'
YELLOW='\E[1;33m'
GREEN='\E[1;32m'
RESET='\E[0m'
# Determine the correct binary file for the architecture given
case $TARGETPLATFORM in
linux/arm64)
ARCH=arm64
;;
*)
ARCH=amd64
;;
esac
if [ "$ARCH" = "amd64" ]; then
echo -e "${BLUE} ${CYAN}Installing golangci-lint ...${RESET}"
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
echo -e "${BLUE} ${CYAN}Installing richgo ...${RESET}"
go install github.com/kyoh86/richgo@latest
echo -e "${BLUE} ${CYAN}Installing govulncheck ...${RESET}"
go install golang.org/x/vuln/cmd/govulncheck@latest
echo -e "${BLUE} ${CYAN}Installing tparse ...${RESET}"
go install github.com/mfridman/tparse@latest
echo -e "${BLUE} ${CYAN}Installing go-junit-report ...${RESET}"
go install github.com/jstemmer/go-junit-report@latest
echo -e "${BLUE} ${CYAN}Installing go-test-coverage ...${RESET}"
go install github.com/vladopajic/go-test-coverage/v2@latest
echo -e "${BLUE} ${CYAN}Installing go-mod-upgrade ...${RESET}"
go install github.com/oligot/go-mod-upgrade@latest
fi
rm -rf "$(go env GOPATH)/.cache/go-build"
echo -e "${BLUE} ${GREEN}Tools install completed${RESET}"