mirror of
https://github.com/luzifer-docker/personal-dns.git
synced 2024-12-20 20:51:18 +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
|
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
|
||||||
|
|
Loading…
Reference in a new issue