generated from archlinux/template
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:
parent
9b48de4ac3
commit
7a3f03feb7
2
.SRCINFO
2
.SRCINFO
@ -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.33.0
|
pkgver = 1.33.0
|
||||||
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
|
||||||
|
7
PKGBUILD
7
PKGBUILD
@ -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.33.0
|
pkgver=1.33.0
|
||||||
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,11 +11,6 @@ makedepends=('git' 'go')
|
|||||||
source=("https://github.com/golangci/golangci-lint/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
source=("https://github.com/golangci/golangci-lint/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
||||||
sha256sums=('ae828754b1f9b0cee11cc81f0720f187831bc61d7b7cbb6e80421ff2d5b74631')
|
sha256sums=('ae828754b1f9b0cee11cc81f0720f187831bc61d7b7cbb6e80421ff2d5b74631')
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd "${pkgname}-${pkgver}"
|
|
||||||
go mod download
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local _commit _flags
|
local _commit _flags
|
||||||
_commit=$(bsdcat "${pkgname}-${pkgver}.tar.gz" | git get-tar-commit-id)
|
_commit=$(bsdcat "${pkgname}-${pkgver}.tar.gz" | git get-tar-commit-id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user