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
packages=(
github.com/Luzifer/bind-log-metrics
github.com/Luzifer/named-blacklist
github.com/Luzifer/rootzone
github.com/Luzifer/bind-log-metrics@latest
github.com/Luzifer/named-blacklist@latest
github.com/Luzifer/rootzone@latest
)
for pkg in "${packages[@]}"; do
targetdir="/go/src/${pkg}"
# Get sources
git clone "https://${pkg}.git" "${targetdir}"
# Go to directory and install util
pushd "${targetdir}"
go install -mod=readonly
popd
go install \
-mod=readonly \
-modcacherw \
"${pkg}"
done