2019-06-12 12:19:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
2020-05-31 14:19:19 +00:00
|
|
|
# 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
|
|
|
|
|
2019-06-12 12:38:37 +00:00
|
|
|
packages=($(cat tools.txt))
|
2019-06-12 12:19:53 +00:00
|
|
|
|
|
|
|
for package in "${packages[@]}"; do
|
|
|
|
echo -e "\e[96mBuilding ${package}...\e[m" >&2
|
2022-03-17 00:35:04 +00:00
|
|
|
go install "${package}"
|
2019-06-12 12:19:53 +00:00
|
|
|
done
|