Clean out Go modcache to prevent paru warnings

This commit is contained in:
Anthony Wang 2023-09-14 22:43:12 +00:00
parent 65ae0d783e
commit 022837448e
Signed by: a
SSH key fingerprint: SHA256:B5ADfMCqd2M7d/jtXDoihAV/yfXOAbWWri9+GdCN4hQ
2 changed files with 5 additions and 3 deletions

View file

@ -1,7 +1,7 @@
pkgbase = woodpecker-agent-sudo
pkgdesc = A simple CI engine with great extensibility (agent), patched to use sudo to run local pipelines
pkgver = 1.0.2
pkgrel = 1
pkgrel = 2
url = https://woodpecker-ci.org
arch = x86_64
license = Apache

View file

@ -5,7 +5,7 @@
_pkgname='woodpecker-agent'
pkgname=$_pkgname-sudo
pkgver=1.0.2
pkgrel=1
pkgrel=2
pkgdesc='A simple CI engine with great extensibility (agent), patched to use sudo to run local pipelines'
arch=('x86_64')
url='https://woodpecker-ci.org'
@ -66,7 +66,7 @@ build() {
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOPATH="${srcdir}"
# build server/agent/cli
# build agent
go build -v \
-buildmode=pie \
-mod=readonly \
@ -76,6 +76,8 @@ build() {
-extldflags ${LDFLAGS}" \
-o build \
./cmd/agent
go clean -modcache
}
package() {