dev-go/delve: add 1.26.1, add shell completions

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2026-04-09 21:44:17 +03:00
parent 512ccb90b6
commit a0d579136e
2 changed files with 56 additions and 0 deletions

View File

@@ -3,3 +3,4 @@ DIST delve-1.24.2.tar.gz 9685412 BLAKE2B 948c91c86ddd11a3d5df3a519e97172a1aac581
DIST delve-1.25.1.tar.gz 9793261 BLAKE2B 7a90a3c39c34fb2f9ee86d8a33e106aec426505d764a4d5b42d9eb5843474a603925eb130c6e8b54042b3d21c4c07c9be0f90b21b2db3c8ea97018eb7a6aab2f SHA512 a2d380d9430d99844ae27ca4985b7077c53effe5940cb5cb9fdbc36ed39c3338a455f43484bd3c95381e6ecd37d7fe1b4345e6630dcc22a5c76b3777126e1c71
DIST delve-1.25.2.tar.gz 9796321 BLAKE2B 4b2e8a745a863d6ce2578913cbe1797d44a266b117b38329edb3e3078414c7b5b7276002464eeafcf86379babd42b738544a3fdb6545a1307c002d5ab026c437 SHA512 4696ad39625d1aa9866154ecb4ebb6bbfc58faa56db598324e224ca5f877193c4bb5124f3741c68ae1fc82b2ebc24cb4310651cfc83a944fbb2ef5edc3d115e7
DIST delve-1.26.0.tar.gz 9584376 BLAKE2B 5309cb7ea07bd80ecf5de39c9db45311537b34a95745f8de8aa7a2a68cab9ece0aecb748ff727825657c7f8ea9851911c482b4c41ce870c5de04a951e60edd55 SHA512 1b9d5c7b91bbf1df47c1fdb3553893497defe7a71ae9c7cef160cf15afac391fe77f66b748e028b29aa3456c21cfc079c2751afb788cb065ee8580501d21ad0e
DIST delve-1.26.1.tar.gz 9604052 BLAKE2B f6773a9e7368b5af1fac97686cf637b62d8b77bd785e4713835304b0d13d4ced0987539a2fd3f9261252afe7783ec82483e1432eb2dc992702465d4ae7898fe4 SHA512 c69a3357173a88a5627714ad41355136417d0f14c88864bc5f52bf1abf1961ec3c2f830b9c26106e83f8a4145ac0dd06cd24dbc2589bd54baadb2f40b08d08e5

View File

@@ -0,0 +1,55 @@
# 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="A source-level debugger for the Go programming language"
HOMEPAGE="https://github.com/go-delve/delve"
SRC_URI="https://github.com/go-delve/delve/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT BSD BSD-2 Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
src_prepare() {
default
# disable failing tests, require network
rm cmd/dlv/dlv_test.go || die
sed -e 's/TestGuessSubstitutePath/_&/' -i service/test/integration2_test.go || die
}
src_compile() {
ego build -mod=vendor -ldflags="-X main.Build=${PV}" -o "${S}/dlv" ./cmd/dlv
einfo "generating shell completion files"
sysroot_try_run_prefixed "${S}/dlv" completion bash > dlv.bash || die
sysroot_try_run_prefixed "${S}/dlv" completion zsh > dlv.zsh || die
sysroot_try_run_prefixed "${S}/dlv" completion fish > dlv.fish || die
}
src_test() {
ego test -count 1 -p 1 -ldflags="-X main.Build=${PV}" ./...
}
src_install() {
dobin dlv
dodoc README.md CHANGELOG.md
[[ -s dlv.bash ]] && newbashcomp dlv.bash dlv
[[ -s dlv.zsh ]] && newzshcomp dlv.zsh _dlv
[[ -s dlv.fish ]] && dofishcomp dlv.fish
}
pkg_postinst() {
elog "Telemetry notice:"
elog "Starting with version 1.24.0, Delve will begin collecting opt-in telemetry"
elog "data using the same mechanism used by the Go toolchain."
elog
elog "For more information, please see:"
elog " * https://github.com/golang/go/issues/68384"
elog " * https://go.dev/doc/telemetry#background"
elog " * https://github.com/go-delve/delve/issues/3815"
}