personal-dns/gotools.sh
Knut Ahlers 8b499e93f0
Ensure readonly-modules when installing tools
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-04-18 13:26:19 +02:00

20 lines
367 B
Bash

#!/bin/bash
set -euxo pipefail
packages=(
github.com/Luzifer/bind-log-metrics
github.com/Luzifer/named-blacklist
github.com/Luzifer/rootzone
)
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
done