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