mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-go/golangci-lint: add 2.13.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -6,3 +6,5 @@ DIST golangci-lint-2.12.1-vendor.tar.xz 5661744 BLAKE2B cba88436487d9d1fa0ae9cf5
|
||||
DIST golangci-lint-2.12.1.tar.gz 5462109 BLAKE2B 28e4ee7071f8f25984710395b0923be4c48c17ed43cd783400c01adff7ad7e0c7aebe5ac92a50d31b7ced04588d6633b0239030c023af8ac8ef0ded43f4a1737 SHA512 a0800fefde4ff4eefbe718707ea12ad1d1fd745cce2eb326666afd107615efca7d4c5817320eb8e2fa07ba675c38f738dd16dfe5beeb02a887bc5ebea4a3a122
|
||||
DIST golangci-lint-2.12.2-vendor.tar.xz 5665388 BLAKE2B 15908f8da9ccf2b1ddb720b5ffc5850fde966c7a33728615283b1076856163b1f8d58173cf7397766f148975021c2d244a2ea7dd14c466972746f630f6ea6b3b SHA512 59ddec7d49b15d0b5158c2df8e3f8a19db1479aee0e344d01acc2d06685bf50125baca3793560727d25a99eef38e261671476959cb3d2b9db90cb47b11f3cbba
|
||||
DIST golangci-lint-2.12.2.tar.gz 5463246 BLAKE2B 2728946fc39d626cf5bb3c800755fbdd1cded81f64cea7b85d94900147ed9031db63b6b6193c70b8c1340110b7745697b70fd970f1e99ac267eeae83ca17c4ed SHA512 ad44c66a0620e35e86ae2ea4cf414b940fa11824bb99487978df771f10efcf963d54043242780f2b570213a0689d641371db8d4f63f633143efd3540bdf3a913
|
||||
DIST golangci-lint-2.13.1-vendor.tar.xz 5811304 BLAKE2B a8434c96e871a502fe48e789a24ffecf3a1f5547b78c2dc2b77ad22f34299a490b3571b4599291ba57f2beab67c8b88cc060f3766c70712762e46ec7971193ea SHA512 518ec9e000b7bbfcc247c229cdb5a24c85eab36233384c33a717ba4f3ac9bd0c7fa731f53ec341549a236b3de313186bb7560356695e2b88eec78bd610f0482d
|
||||
DIST golangci-lint-2.13.1.tar.gz 5488112 BLAKE2B b97cc1f000933de8b76d40ce3e48602713fc3ee7b3a2590d404543497bae1601d277ecbd963e844b9172544f279f31ceb6a332ca5c3ef7a33131ce976eb0d253 SHA512 380b8e3a3df85b2dee5e9dedd726576aa3616c7a9a7d5d0aea6f79e348d01696f773bc8fd1ce98dc81b591b5b74e9bb114206ba186aa80b84c2857a9bff6e098
|
||||
|
||||
49
dev-go/golangci-lint/golangci-lint-2.13.1.ebuild
Normal file
49
dev-go/golangci-lint/golangci-lint-2.13.1.ebuild
Normal file
@@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module shell-completion sysroot
|
||||
|
||||
DESCRIPTION="Fast linters runner for Go"
|
||||
HOMEPAGE="https://golangci-lint.run/ https://github.com/golangci/golangci-lint"
|
||||
SRC_URI="https://github.com/golangci/golangci-lint/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD BSD-2 GPL-3 ISC MIT MPL-2.0 OFL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
BDEPEND=">=dev-lang/go-1.26.1"
|
||||
|
||||
src_compile() {
|
||||
local myldflags=(
|
||||
-w
|
||||
-X main.version="${PV}"
|
||||
-X main.commit="gentoo-${PV}"
|
||||
-X main.date="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
||||
)
|
||||
local -x CGO_ENABLED=0
|
||||
ego build -trimpath -ldflags "${myldflags[*]}" -o golangci-lint ./cmd/golangci-lint
|
||||
|
||||
einfo "generating shell completion files"
|
||||
sysroot_try_run_prefixed ./golangci-lint completion bash > ${PN}.bash || die
|
||||
sysroot_try_run_prefixed ./golangci-lint completion zsh > ${PN}.zsh || die
|
||||
sysroot_try_run_prefixed ./golangci-lint completion fish > ${PN}.fish || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin golangci-lint
|
||||
local DOCS=( README.md CHANGELOG.md )
|
||||
einstalldocs
|
||||
|
||||
[[ -s ${PN}.bash ]] && newbashcomp ${PN}.bash ${PN}
|
||||
[[ -s ${PN}.zsh ]] && newzshcomp ${PN}.zsh _${PN}
|
||||
[[ -s ${PN}.fish ]] && dofishcomp ${PN}.fish
|
||||
}
|
||||
Reference in New Issue
Block a user