vim-go-tools/build.sh
Knut Ahlers 9682cca0de
Change installation of tooling for Go1.18
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-03-17 01:35:04 +01:00

15 lines
334 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=($(cat tools.txt))
for package in "${packages[@]}"; do
echo -e "\e[96mBuilding ${package}...\e[m" >&2
go install "${package}"
done