dev-go/golangci-lint: add 2.5.0

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2025-09-22 21:40:36 +03:00
parent 42f1e0614c
commit 4b045dd98f
2 changed files with 48 additions and 0 deletions

View File

@@ -16,3 +16,5 @@ DIST golangci-lint-2.1.0-deps.tar.xz 36222896 BLAKE2B c4bd86befc7701dc9951626e1b
DIST golangci-lint-2.1.0.tar.gz 2347631 BLAKE2B b716b7d019b114ae66d1de630b0abe710aefd2010cacf27b126d041b5bd28684884b2f4573b047837033f2bfb1ea4166e1973298d22e07e8aed640d1ce16cf86 SHA512 c10e62f5c8e7cd055c70d5ab7608f1fc80d6133dfa6ffa7661ea9625f07e65b96c99574fe9a239f64a49d1f4ee289d7a80a6719e91fae7c2d0d66e2b8fac2088
DIST golangci-lint-2.1.2-deps.tar.xz 36225632 BLAKE2B b74443aa04fa63ffcd8d392c13fdd7c0c5ceb6546afa73c9e84a22d83e18ef9239eea41ac500200d8390baa0e2e6e37f21d42098e7e6f2f56d42734d8a1d7f63 SHA512 b8103177e12f647c610571c31c7aea98bf9704ee6102cc226a2af6781f77cc49b784f8b68b586bc5fb9bfe8a55a20cac9afe024ed119943f6598ef52ba987135
DIST golangci-lint-2.1.2.tar.gz 2348422 BLAKE2B b3e7a12c0fae73b0652f19e759208143f432d589820b091632a1429ea52a20c8795b3a295d6c895152c2230f2dcde3ab016ad92639343e3a613387788e85b996 SHA512 e4dbb2baa333f6bc81e62a6624b58554dfb91390c55c8f14c441d96d267fc956c99cf37403d7878f1a8c21b4a87b15446f595794c3646ce689a9cb1ec538b587
DIST golangci-lint-2.5.0-deps.tar.xz 32920816 BLAKE2B 05cef8ad47009e81d3fc1884d86f2c868bfc2c432d0a40a89fd34d8c5a2cb150de449135566a320dd9d966acb25156ac2b18d36f292517e12e16bc8606c85a06 SHA512 0521c469e21833f88bd56d2a5cbc7c11e8870214600c3f0abb0315092f05b335dd833c81401042163f50d299ad8b24e2d0ee4d73706ed8694ea772dd896cd501
DIST golangci-lint-2.5.0.tar.gz 5258480 BLAKE2B 9ee2cd3b5b342fae85864107c60f60d0e1174c9ce857082c13a159d8d506429413b66ec32fa39b4517988539f0aa5e3230c9efa2631e7a2203203457d6b8c778 SHA512 3260a1606beb396af244d35e34c2fa606c94023f873f12d2d97b3c0a79082b92a059cf721114845747efbb4f309c145f0967846fc2bcdbe235079b6ec1d3f92a

View File

@@ -0,0 +1,46 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module shell-completion toolchain-funcs
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}-deps.tar.xz"
LICENSE="GPL-3"
# Dependent licenses
LICENSE+=" Apache-2.0 BSD BSD-2 GPL-3 ISC MIT MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"
src_compile() {
emake build
if ! tc-is-cross-compiler; then
einfo "generating shell completion files"
./golangci-lint completion bash > ${PN}.bash || die
./golangci-lint completion zsh > ${PN}.zsh || die
./golangci-lint completion fish > ${PN}.fish || die
fi
}
src_test() {
emake test
}
src_install() {
dobin golangci-lint
local DOCS=( README.md CHANGELOG.md )
einstalldocs
if ! tc-is-cross-compiler; then
newbashcomp ${PN}.bash ${PN}
newzshcomp ${PN}.zsh _${PN}
dofishcomp ${PN}.fish
else
ewarn "Shell completion files not installed! Install them manually with '${PN} completion --help'"
fi
}