dev-go/golangci-lint: add 2.6.2

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin 2025-11-15 11:16:21 +02:00
parent 73cb0cce2c
commit 1dfcf47b4c
No known key found for this signature in database
GPG Key ID: 02A0AF503D120504
2 changed files with 48 additions and 0 deletions

View File

@ -22,3 +22,5 @@ DIST golangci-lint-2.6.0-deps.tar.xz 33151332 BLAKE2B 96efa1b89e1fcd6e57985ce34b
DIST golangci-lint-2.6.0.tar.gz 5326981 BLAKE2B 869dfb720724964cde014e506b6937d5b0f7929c837c50075ea03f6931898054f11e7dcbb597ea10cc2ec4710fb37400af0f9bbcfda3972ef319dbb34946e732 SHA512 eea86feb5d99f86e44ea1d70d67f8bc580d31dfb52d79c232ee4c44dcab481938cdff85e4849102b473aab931de1caf40193e0adbbc9548d185a98ac15c64746
DIST golangci-lint-2.6.1-deps.tar.xz 33027976 BLAKE2B bd03a908e1c522e87661ed0e30c9e8e26aae8b2ac948154cff7a509b6afa10f6f14f6c09f3bcd414c3fdcae3b27f9c1abd761bec7c7afbb7c0319f14a0e8ac00 SHA512 339a287f33efd7ec77e51144d00c2223256b5e3424f521b5329db85aacf57e72c33efd2b70679e8ba44b94d3772c5ffa61f0f50c81369d09390483e5bd2c5fb9
DIST golangci-lint-2.6.1.tar.gz 5329109 BLAKE2B 3f8b625556bba25717b9d736e284f186f34defa80ec7edc2b2fbe2c4488b84a8e68a890ea0e56be1af87c1ecabd693c85e31efec551a1eed19faa9631f9c8f54 SHA512 9d68a40ea41c287774ede970272d7cbd8cf101bad85240e6517e9fc1b581054a6a1c45e25cb0b727b6a077136452427ecfdd9b4ec77c2c3bf32e6e1246751068
DIST golangci-lint-2.6.2-vendor.tar.xz 5330920 BLAKE2B 0b8a5fec5d920741d55f2f7306222d3748b3a0eb993d35b41275aaa3454fae6d55421a2b7d1c411d47353eb897b21f678ae37e83fdfa82c5568c862b2c730a1e SHA512 2e8a0594bf67b8a3e47cb7c11ab10073e9bb5afe7fd9a0e852c51510c57a180daa7c1ebedd44e8be27cda8c2ce47339771f49ed6be4bf3092d074e7bb2f904ff
DIST golangci-lint-2.6.2.tar.gz 5329919 BLAKE2B 8865bf507bd30d83a39ff4e46899287ce80127712af89df78e2b62a1af637821b792b2c14dd933627fa3c1c97e556f9be23f425241e0ee0bbf854d904bd30491 SHA512 30514f96c8a0cdd2c72985382b993307250d647720dd5b672a6af15a5b50872ed8e161452aa76f7cf03a6e9ff2a6e3ccd74c68f6efcda86bd3019c024c03fd43

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}-vendor.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
}