vim-go-tools/build.sh
Knut Ahlers 9237b9224f
Add latest stable Go version to tools file
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-05-07 16:38:38 +02:00

15 lines
345 B
Bash

#!/bin/bash
set -euo pipefail
# Force module mode to support "@version" syntax
export GO111MODULE=on
# Remove mod-cache on exit as its permissions are FUBAR
trap "go clean -modcache" EXIT
packages=($(grep -v "^#" tools.txt))
for package in "${packages[@]}"; do
echo -e "\e[96mBuilding ${package}...\e[m" >&2
go install "${package}"
done