Update go tools installation

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-05-27 15:47:22 +02:00
parent 7e9c90ce53
commit 10e20bce21
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -2,19 +2,14 @@
set -euxo pipefail set -euxo pipefail
packages=( packages=(
github.com/Luzifer/bind-log-metrics github.com/Luzifer/bind-log-metrics@latest
github.com/Luzifer/named-blacklist github.com/Luzifer/named-blacklist@latest
github.com/Luzifer/rootzone github.com/Luzifer/rootzone@latest
) )
for pkg in "${packages[@]}"; do for pkg in "${packages[@]}"; do
targetdir="/go/src/${pkg}" go install \
-mod=readonly \
# Get sources -modcacherw \
git clone "https://${pkg}.git" "${targetdir}" "${pkg}"
# Go to directory and install util
pushd "${targetdir}"
go install -mod=readonly
popd
done done