public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-go/golangci-lint/
Date: Tue, 15 Apr 2025 03:33:40 +0000 (UTC)	[thread overview]
Message-ID: <1744687956.c48940aeb67cfa8f8734480ece422c918020bc8e.williamh@gentoo> (raw)

commit:     c48940aeb67cfa8f8734480ece422c918020bc8e
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 15 03:31:38 2025 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Apr 15 03:32:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c48940ae

dev-go/golangci-lint: add 2.1.0

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 dev-go/golangci-lint/Manifest                   |  2 ++
 dev-go/golangci-lint/golangci-lint-2.1.0.ebuild | 46 +++++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/dev-go/golangci-lint/Manifest b/dev-go/golangci-lint/Manifest
index bb8e31f2b712..995ea6a1a18a 100644
--- a/dev-go/golangci-lint/Manifest
+++ b/dev-go/golangci-lint/Manifest
@@ -14,3 +14,5 @@ DIST golangci-lint-1.64.7-deps.tar.xz 26242404 BLAKE2B e979fc047debbf7530b087677
 DIST golangci-lint-1.64.7.tar.gz 2070704 BLAKE2B a2b920e32a282119ce94ab30b2efcce510b344c4b29a8c94485a2bb44e248a86931850bf2072b26e1d4672191f969db43f4b7112d209c959a90d62d925e111de SHA512 7b9370fd2fe8ade529792f5837d014385530cd07439c057cf9506de0bbcb8fc5d937ed5df005b589a944f643bec752c026c6c976969828782ca79890f5922847
 DIST golangci-lint-2.0.2-deps.tar.xz 36571608 BLAKE2B 4b050a594e93886595db4a8500029e333ec281ec77d02d787db63b619a69d6f1f4fb99a971ac59a54acd980676345de606ad075e8f1a8e6309137ffc8f3e7571 SHA512 a98e7cafa898988a5a827836e0f3bbc7c805ac591b9a75fbb5794ab9b478f65ebcce7121faf2117ab34c6e0feb86d9f50fd54d6be987af123509dff3e99eb35b
 DIST golangci-lint-2.0.2.tar.gz 2174572 BLAKE2B aa770607b8cf8006a3325e949f2ebe4ec68bcdee171428fef44ffa158990bbbbf9c4f042632011c885b028a572b706d518cb7438f27e266b77ed1d9a716e713b SHA512 0b7858e1a9cfc43d0eccfe6b29bdc383caf092b9ba84d1d2b0631908fa01cd433b14ad8660a4ed78188e87d45bc7aa78c72b2d1c2abfe431fe8995ea93144861
+DIST golangci-lint-2.1.0-deps.tar.xz 36222896 BLAKE2B c4bd86befc7701dc9951626e1b33e8abe3b150ef4b447c2291abadced70f2bef562759ad90c234b8c15555ea34e30a473a75912f99858a1e37b456de24b9c702 SHA512 0bb47f4f4926da5251c5a910b2e3418402a273395e6846d6a5de92025582ad543831058468fea0763aa916f4301eb03dbeb5a937e0e70d7db7f6e10dac4807fa
+DIST golangci-lint-2.1.0.tar.gz 2347631 BLAKE2B b716b7d019b114ae66d1de630b0abe710aefd2010cacf27b126d041b5bd28684884b2f4573b047837033f2bfb1ea4166e1973298d22e07e8aed640d1ce16cf86 SHA512 c10e62f5c8e7cd055c70d5ab7608f1fc80d6133dfa6ffa7661ea9625f07e65b96c99574fe9a239f64a49d1f4ee289d7a80a6719e91fae7c2d0d66e2b8fac2088

diff --git a/dev-go/golangci-lint/golangci-lint-2.1.0.ebuild b/dev-go/golangci-lint/golangci-lint-2.1.0.ebuild
new file mode 100644
index 000000000000..7fd588351a36
--- /dev/null
+++ b/dev-go/golangci-lint/golangci-lint-2.1.0.ebuild
@@ -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://dev.gentoo.org/~williamh/dist/${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
+}


             reply	other threads:[~2025-04-15  3:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-15  3:33 William Hubbs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-09-22 19:11 [gentoo-commits] repo/gentoo:master commit in: dev-go/golangci-lint/ Arthur Zamarin
2025-04-21 19:10 William Hubbs
2025-04-21 16:11 William Hubbs
2025-04-02  8:16 WANG Xuerui
2025-03-28 16:35 Arthur Zamarin
2025-03-27 15:08 William Hubbs
2025-03-14 10:11 Arthur Zamarin
2025-03-04 17:14 Arthur Zamarin
2024-09-12 21:04 William Hubbs
2024-08-07 18:28 William Hubbs
2024-03-10 16:26 William Hubbs
2024-01-25 21:25 William Hubbs
2023-01-25 19:22 William Hubbs
2023-01-25 19:19 William Hubbs
2023-01-25 19:12 William Hubbs
2023-01-13 17:48 William Hubbs
2022-09-10 21:40 William Hubbs
2022-08-24  1:20 Sam James
2022-08-24  1:15 William Hubbs
2022-08-23 23:11 William Hubbs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1744687956.c48940aeb67cfa8f8734480ece422c918020bc8e.williamh@gentoo \
    --to=williamh@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox