From 10e20bce21b89f97e3f0df3d3b40e32887933976 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 27 May 2022 15:47:22 +0200 Subject: [PATCH] Update go tools installation Signed-off-by: Knut Ahlers --- gotools.sh | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/gotools.sh b/gotools.sh index 100975e..9bd3e19 100644 --- a/gotools.sh +++ b/gotools.sh @@ -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