Article View: linux.debian.bugs.dist
Article #6066Bug#1155235: golang-github-prometheus-exporter-toolkit: installed tls_config.go imports github.com/go-kit/log, which no go.mod r...
From: Juan Manuel Méndez Rey
Date: Wed, 25 Nov 2026 11:20
Date: Wed, 25 Nov 2026 11:20
30 lines
2780 bytes
2780 bytes
Source: golang-github-prometheus-exporter-toolkit
Version: 0.17.1-1
Severity: normal
golang-github-prometheus-exporter-toolkit-dev installs
usr/share/gocode/src/github.com/prometheus/exporter-toolkit/web/tls_config.go:33
"github.com/go-kit/log"
but the go.mod installed with it does not require github.com/go-kit/log,
and neither do the packages that use the toolkit. The same file also
imports github.com/prometheus/common/promslog, which is the replacement
for go-kit/log, so the two look like leftovers of a half finished
change.
A GOPATH build ignores go.mod and works. A module-aware build stops
with:
module github.com/go-kit/log provides package github.com/go-kit/log
and is replaced but not required
so web/ cannot be used from any package built with dh-go. I hit it while
measuring a dh-go port of prometheus-alertmanager.
Either the import should go, if promslog already covers it, or go.mod
should require go-kit/log so the installed sources and the module graph
agree.
Juan
Technical Details
Message-ID:
<O3jcB-e3D6-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Juan Manuel Méndez Rey <juan.mendezr@proton.me> Newsgroups: linux.debian.bugs.dist Subject: Bug#1155235: golang-github-prometheus-exporter-toolkit: installed tls_config.go imports github.com/go-kit/log, which no go.mod requires Date: Wed, 25 Nov 2026 12:20:01 +0100 Message-ID: <O3jcB-e3D6-3@gated-at.bofh.it> X-Original-To: submit@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Nov 25 11:17:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Juan Manuel Méndez Rey <juan.mendezr@proton.me>, 1155235@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: team+pkg-go@tracker.debian.org X-Debian-Pr-Message: report 1155235 X-Debian-Pr-Package: src:golang-github-prometheus-exporter-toolkit X-Debian-Pr-Source: golang-github-prometheus-exporter-toolkit Feedback-ID: 176548819:user:proton X-Pm-Message-ID: bfa67c100e15c312d1129fe3bcdbf42740b7b311 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004879 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 30 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 25 Nov 2026 11:15:17 +0000 X-Original-Message-ID: <1795605316.f63c7044@dhgo-dep-bugs.juan.mendezr>