Clean out Go modcache to prevent paru warnings
This commit is contained in:
parent
65ae0d783e
commit
022837448e
2 changed files with 5 additions and 3 deletions
2
.SRCINFO
2
.SRCINFO
|
@ -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
|
||||
|
|
6
PKGBUILD
6
PKGBUILD
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue