mirror of
https://github.com/luzifer-docker/personal-dns.git
synced 2024-11-09 18:20:02 +00:00
Update go tools installation
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
7e9c90ce53
commit
10e20bce21
1 changed files with 7 additions and 12 deletions
19
gotools.sh
19
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
|
||||
|
|
Loading…
Reference in a new issue