diff options
author | William Hubbs <williamh@gentoo.org> | 2024-01-25 15:24:47 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2024-01-25 15:25:10 -0600 |
commit | b51402b76750068051973307dbdfecb38c400b23 (patch) | |
tree | 96bd2c6111e01308aff9ff923ff7cc527e561788 /dev-go | |
parent | net-misc/kea: 2.4.0 ebuild improvements (diff) | |
download | gentoo-b51402b76750068051973307dbdfecb38c400b23.tar.gz gentoo-b51402b76750068051973307dbdfecb38c400b23.tar.bz2 gentoo-b51402b76750068051973307dbdfecb38c400b23.zip |
dev-go/golangci-lint: add 1.55.2
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-go')
-rw-r--r-- | dev-go/golangci-lint/Manifest | 2 | ||||
-rw-r--r-- | dev-go/golangci-lint/golangci-lint-1.55.2.ebuild | 36 |
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-go/golangci-lint/Manifest b/dev-go/golangci-lint/Manifest index 0e0bd2b66656..3b60ed764bac 100644 --- a/dev-go/golangci-lint/Manifest +++ b/dev-go/golangci-lint/Manifest @@ -1,2 +1,4 @@ DIST golangci-lint-1.50.1-deps.tar.xz 41697892 BLAKE2B 91eaf045b19eedffd18cd14e83f1c0204f98f335468cbdb7e3c8b31cc305651f3a365313ed77619438c529d48e16bb1a32038c99d7823fe8fd79a9c9553c8ec0 SHA512 8200ef0b89d30c539431a3c8857a12c508e4f64eae187f6e125a59adb93233d61bdb63dd1a60c6ef049f6ed68db0103264dbd926171855b9a0d9544ef3469c44 DIST golangci-lint-1.50.1.tar.gz 1564977 BLAKE2B defff019deafd3c1682fbf842660fc2295f50e53e21db7e32df45a4041911e690a5d017f2d2925ce9b0c6455609c71bb7b5be77dc69b1d6afdf02cdb9c117638 SHA512 d03b6cec78208d57506e20ea43b8c9a449063cc3857cc242bfc75c4a8478b4cae2a673fc258bec552a68ff2ac2b32cab32d0fde256a73184bd752c38cd063f04 +DIST golangci-lint-1.55.2-deps.tar.xz 43815104 BLAKE2B a352c9cad3e5e2f5544320fc07f06325e569580068acaaa2f3a3089861fbbda04202e5dac63284deb94ca8ece6cbd056aba849c9ee4955397fa82d2c23d8d35b SHA512 19ebe48a46c4537588e767ea8579ca20f583e09865e157a9df54e792be2c6358fd95642975eb758285bbd5486d6c2773dda26f6ddf79c80008b1a5bcfd4faea4 +DIST golangci-lint-1.55.2.tar.gz 1687534 BLAKE2B 14bfbeabd5e08c871e368b8dd94a5e2cc4f1673e5b221d1d5d44b0fed076ea68a80b563d562803fcb384c655bb1689f891e255990059e9720804373d1d51d43c SHA512 286749a6aaa89ae7400894b04fa64490543cbc4703c0d5a9252cfe01fba331e1323828b57d5051bf13dc041b5266a979ed31facba610d0814fce0462f5571718 diff --git a/dev-go/golangci-lint/golangci-lint-1.55.2.ebuild b/dev-go/golangci-lint/golangci-lint-1.55.2.ebuild new file mode 100644 index 000000000000..ab124443528f --- /dev/null +++ b/dev-go/golangci-lint/golangci-lint-1.55.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module +# update on every bump +GIT_COMMIT=e3c2265f + +DESCRIPTION="Fast linters runner for Go" +HOMEPAGE="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://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="test" + +src_compile() { + CGO_ENABLED=0 ego build -trimpath -ldflags " + -X main.commit=${GIT_COMMIT} + -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ) + -X main.version=${PV}" \ + -o golangci-lint ./cmd/golangci-lint +} + +src_test() { + emake test +} + +src_install() { + dobin golangci-lint + einstalldocs +dodoc CHANGELOG.md +} |