updpkg: golangci-lint 1.25.1-2

Attempt to fix weird test failure
This commit is contained in:
ml 2020-04-29 00:50:38 +02:00
parent 946b5abf96
commit ee274e5abb
2 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,7 @@
pkgbase = golangci-lint pkgbase = golangci-lint
pkgdesc = Linters Runner for Go. 5x faster than gometalinter. pkgdesc = Linters Runner for Go. 5x faster than gometalinter.
pkgver = 1.25.1 pkgver = 1.25.1
pkgrel = 1 pkgrel = 2
url = https://github.com/golangci/golangci-lint url = https://github.com/golangci/golangci-lint
arch = x86_64 arch = x86_64
arch = i686 arch = i686

View File

@ -2,7 +2,7 @@
pkgname=golangci-lint pkgname=golangci-lint
pkgdesc="Linters Runner for Go. 5x faster than gometalinter." pkgdesc="Linters Runner for Go. 5x faster than gometalinter."
pkgver=1.25.1 pkgver=1.25.1
pkgrel=1 pkgrel=2
arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h') arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h')
url='https://github.com/golangci/golangci-lint' url='https://github.com/golangci/golangci-lint'
license=('GPL3') license=('GPL3')
@ -11,6 +11,11 @@ makedepends=('git' 'go' 'gzip')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/golangci/golangci-lint/archive/v${pkgver}.tar.gz") source=("${pkgname}-${pkgver}.tar.gz::https://github.com/golangci/golangci-lint/archive/v${pkgver}.tar.gz")
sha256sums=('034440e00f81d1b5adfe5e39bceb2f0b9cb19066195a61e750a4982bbe512cf3') sha256sums=('034440e00f81d1b5adfe5e39bceb2f0b9cb19066195a61e750a4982bbe512cf3')
prepare() {
cd "${pkgname}-${pkgver}"
go mod download
}
build() { build() {
export CGO_LDFLAGS="${LDFLAGS}" export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CFLAGS="${CFLAGS}" export CGO_CFLAGS="${CFLAGS}"
@ -29,7 +34,7 @@ check() {
cd "${pkgname}-${pkgver}" cd "${pkgname}-${pkgver}"
# some tests build the binary and overwrite our build # some tests build the binary and overwrite our build
chmod 555 "$pkgname" # canary chmod 555 "$pkgname" # canary
GOLANGCI_LINT_INSTALLED=true go test ./... GOLANGCI_LINT_CACHE="${srcdir}/golangci-lint-cache" GOLANGCI_LINT_INSTALLED=true go test -short ./...
} }
package() { package() {