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.
This commit is contained in:
ml 2020-11-27 01:00:41 +01:00
parent 9b48de4ac3
commit 7a3f03feb7
2 changed files with 2 additions and 7 deletions

View File

@ -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

View File

@ -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)