From 1980fb2f6f9c30cb0f225ea00a9563861f5e9ca0 Mon Sep 17 00:00:00 2001 From: Henrik Riomar Date: Tue, 12 Mar 2024 13:34:00 +0100 Subject: [PATCH] community/netdata-go-plugins: 0.58.1 Also fix the pulsar test case, re-enable check() Closes #15865 --- ...1-fix-go.d.plugin-pulsar-tests-17093.patch | 24 +++++++++++++++++++ community/netdata-go-plugins/APKBUILD | 13 +++++----- 2 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 community/netdata-go-plugins/0001-fix-go.d.plugin-pulsar-tests-17093.patch diff --git a/community/netdata-go-plugins/0001-fix-go.d.plugin-pulsar-tests-17093.patch b/community/netdata-go-plugins/0001-fix-go.d.plugin-pulsar-tests-17093.patch new file mode 100644 index 00000000000..3bd56d10bd7 --- /dev/null +++ b/community/netdata-go-plugins/0001-fix-go.d.plugin-pulsar-tests-17093.patch @@ -0,0 +1,24 @@ +From d28d1f71c7e0093662d5e5917685b430759848af Mon Sep 17 00:00:00 2001 +From: Ilya Mashchenko +Date: Mon, 4 Mar 2024 10:36:02 +0200 +Subject: [PATCH] fix go.d.plugin/pulsar tests (#17093) + +--- + src/go/collectors/go.d.plugin/modules/pulsar/charts.go | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/go/collectors/go.d.plugin/modules/pulsar/charts.go b/src/go/collectors/go.d.plugin/modules/pulsar/charts.go +index a0599dc8d..3ddff66f6 100644 +--- a/modules/pulsar/charts.go ++++ b/modules/pulsar/charts.go +@@ -269,6 +269,7 @@ var namespaceCharts = Charts{ + } + + func toNamespaceChart(chart Chart) Chart { ++ chart = *chart.Copy() + if chart.ID == sumBrokerComponentsChart.ID { + _ = chart.RemoveDim("pulsar_namespaces_count") + } +-- +2.44.0 + diff --git a/community/netdata-go-plugins/APKBUILD b/community/netdata-go-plugins/APKBUILD index 36e0e0bb688..fa4852c52e6 100644 --- a/community/netdata-go-plugins/APKBUILD +++ b/community/netdata-go-plugins/APKBUILD @@ -1,17 +1,17 @@ # Contributor: Henrik Riomar # Maintainer: Henrik Riomar pkgname=netdata-go-plugins -pkgver=0.58.0 -pkgrel=1 +pkgver=0.58.1 +pkgrel=0 pkgdesc="netdata go.d.plugin" url="https://github.com/netdata/go.d.plugin" arch="all !x86 !armv7 !armhf" # checks fail license="GPL-3.0-or-later" depends="netdata" makedepends="go" -# FIXME: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15865 -options="!check" -source="$pkgname-$pkgver.tar.gz::https://codeload.github.com/netdata/go.d.plugin/tar.gz/refs/tags/v$pkgver" +source="$pkgname-$pkgver.tar.gz::https://codeload.github.com/netdata/go.d.plugin/tar.gz/refs/tags/v$pkgver + 0001-fix-go.d.plugin-pulsar-tests-17093.patch + " builddir="$srcdir/go.d.plugin-$pkgver" export GOFLAGS="$GOFLAGS -modcacherw" @@ -36,5 +36,6 @@ package() { } sha512sums=" -cab04ea45008b668a6103a6d147e4f96e55a132f13e5ca3054b5ea6cff263dba048a9f7f52f4781495425f9a9cbb9e43786047188b0165ca1071c7c216486e12 netdata-go-plugins-0.58.0.tar.gz +acbfd7ee4a72cee0587936bd2d4e27a2b58894ee72a2218b96643c1fe0866990f9d6bfe1f754cda5f5443bc75e1406a6511300ea265a81e4be89f7f97b17664c netdata-go-plugins-0.58.1.tar.gz +7b7e6599cdd87f8640ab21323f2fe7b419b6371538f46554c5b272a7ef47f94b32f27abe7c37429aeeeef038be57fce0b75a52de15890b1dbfb96e6f6f9e6300 0001-fix-go.d.plugin-pulsar-tests-17093.patch "