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

Reply via email to