From 7a3f03feb7bf8db5a63acc4fc6625f9f15520e1e Mon Sep 17 00:00:00 2001 From: ml <> Date: Fri, 27 Nov 2020 01:00:41 +0100 Subject: [PATCH] updpkg: golangci-lint 1.33.0-2 Implicitly fetch dependencies with on `go build'. `go mod download' fetches full modules which is a waste of disk space (~500M). `go get -d' would be the better way to prefetch dependencies in prepare(), however does not work for golangci-lint. Upstream doesn't seem to care about this inconsistency. No point in punishing users not having access to a fast internet connection or have little disk space. --- .SRCINFO | 2 +- PKGBUILD | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 86ede06..79699f3 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = golangci-lint pkgdesc = Linters Runner for Go. 5x faster than gometalinter. pkgver = 1.33.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/golangci/golangci-lint arch = x86_64 arch = i686 diff --git a/PKGBUILD b/PKGBUILD index 4123878..318fac4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=golangci-lint pkgdesc="Linters Runner for Go. 5x faster than gometalinter." pkgver=1.33.0 -pkgrel=1 +pkgrel=2 arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h') url='https://github.com/golangci/golangci-lint' license=('GPL3') @@ -11,11 +11,6 @@ makedepends=('git' 'go') source=("https://github.com/golangci/golangci-lint/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") sha256sums=('ae828754b1f9b0cee11cc81f0720f187831bc61d7b7cbb6e80421ff2d5b74631') -prepare() { - cd "${pkgname}-${pkgver}" - go mod download -} - build() { local _commit _flags _commit=$(bsdcat "${pkgname}-${pkgver}.tar.gz" | git get-tar-commit-id)