From a7db02000cbe50dd3193cc70dc2bc8de379d4ce8 Mon Sep 17 00:00:00 2001 From: dadevel Date: Mon, 6 Nov 2023 23:33:28 +0100 Subject: [PATCH] tidy all go projects before build --- aquatone/PKGBUILD | 1 + asnmap/PKGBUILD | 1 + azurehound/PKGBUILD | 2 +- dnsx/PKGBUILD | 1 + ffuf/PKGBUILD | 1 + gobuster/PKGBUILD | 1 + gowitness/PKGBUILD | 1 + httpx/PKGBUILD | 1 + kerbrute/PKGBUILD | 2 +- ldapnomnom/PKGBUILD | 1 + mapcidr/PKGBUILD | 1 + nuclei/PKGBUILD | 1 + pretender/PKGBUILD | 4 ++-- shuffledns/PKGBUILD | 1 + subfinder/PKGBUILD | 1 + tlsx/PKGBUILD | 1 + 16 files changed, 17 insertions(+), 4 deletions(-) diff --git a/aquatone/PKGBUILD b/aquatone/PKGBUILD index 8d7d5061..93faea93 100644 --- a/aquatone/PKGBUILD +++ b/aquatone/PKGBUILD @@ -11,6 +11,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/asnmap/PKGBUILD b/asnmap/PKGBUILD index 32f46c1a..196788fa 100644 --- a/asnmap/PKGBUILD +++ b/asnmap/PKGBUILD @@ -10,6 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}/cmd/${pkgname}" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/azurehound/PKGBUILD b/azurehound/PKGBUILD index 7b4023e4..0224f093 100644 --- a/azurehound/PKGBUILD +++ b/azurehound/PKGBUILD @@ -10,7 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}" - go mod download + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/dnsx/PKGBUILD b/dnsx/PKGBUILD index d4a6de04..3e2cd803 100644 --- a/dnsx/PKGBUILD +++ b/dnsx/PKGBUILD @@ -10,6 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}/cmd/${pkgname}" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/ffuf/PKGBUILD b/ffuf/PKGBUILD index 084c1f10..48e1cd45 100644 --- a/ffuf/PKGBUILD +++ b/ffuf/PKGBUILD @@ -10,6 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/gobuster/PKGBUILD b/gobuster/PKGBUILD index dcb5b2e2..3a0adc0a 100644 --- a/gobuster/PKGBUILD +++ b/gobuster/PKGBUILD @@ -10,6 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/gowitness/PKGBUILD b/gowitness/PKGBUILD index a4945549..7ac993ed 100644 --- a/gowitness/PKGBUILD +++ b/gowitness/PKGBUILD @@ -11,6 +11,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/httpx/PKGBUILD b/httpx/PKGBUILD index 6010116f..df1cad23 100644 --- a/httpx/PKGBUILD +++ b/httpx/PKGBUILD @@ -10,6 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}/cmd/${pkgname}" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/kerbrute/PKGBUILD b/kerbrute/PKGBUILD index 77a6a44a..82a6cfa5 100644 --- a/kerbrute/PKGBUILD +++ b/kerbrute/PKGBUILD @@ -10,7 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}" - go mod download + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/ldapnomnom/PKGBUILD b/ldapnomnom/PKGBUILD index 5ffdfb9b..e4d4ab2a 100644 --- a/ldapnomnom/PKGBUILD +++ b/ldapnomnom/PKGBUILD @@ -10,6 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/mapcidr/PKGBUILD b/mapcidr/PKGBUILD index b0945b3a..a5ebf421 100644 --- a/mapcidr/PKGBUILD +++ b/mapcidr/PKGBUILD @@ -10,6 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}/cmd/${pkgname}" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/nuclei/PKGBUILD b/nuclei/PKGBUILD index 35b3dcd6..e811fd1d 100644 --- a/nuclei/PKGBUILD +++ b/nuclei/PKGBUILD @@ -10,6 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}/cmd/nuclei" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/pretender/PKGBUILD b/pretender/PKGBUILD index cac3b704..634a33cf 100644 --- a/pretender/PKGBUILD +++ b/pretender/PKGBUILD @@ -1,5 +1,5 @@ pkgname=pretender -pkgver=v1.0.0_3_g81d67f1 +pkgver=latest pkgrel=1 url="https://github.com/redteampentesting/${pkgname}.git" arch=(any) @@ -10,7 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}" - go mod download + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/shuffledns/PKGBUILD b/shuffledns/PKGBUILD index e8563a40..b357dd88 100644 --- a/shuffledns/PKGBUILD +++ b/shuffledns/PKGBUILD @@ -11,6 +11,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}/cmd/${pkgname}" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/subfinder/PKGBUILD b/subfinder/PKGBUILD index cf4f28b2..f07250de 100644 --- a/subfinder/PKGBUILD +++ b/subfinder/PKGBUILD @@ -10,6 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}/v2/cmd/subfinder" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . } diff --git a/tlsx/PKGBUILD b/tlsx/PKGBUILD index f8f0dbf2..bb1665e2 100644 --- a/tlsx/PKGBUILD +++ b/tlsx/PKGBUILD @@ -10,6 +10,7 @@ sha256sums=(SKIP) build() { cd "${srcdir}/${pkgname}/cmd/${pkgname}" + go mod tidy go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . }