[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1010762: Acknowledgement (ITP: prometheus-systemd-exporter -- Prometheus Exporter for systemd unit metrics)



I tweaked the dh-golang output a little and dumped the result here:

https://salsa.debian.org/go-team/packages/systemd-exporter/

I'm stuck on this error:

dh binary --builddirectory=_build --buildsystem=golang --with=golang
 debian/rules binary
   dh_update_autotools_config -O--builddirectory=_build -O--buildsystem=golang
   dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang
   dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang
   dh_auto_build -O--builddirectory=_build -O--buildsystem=golang
	cd _build && go install -trimpath -v -p 2 github.com/povilasv/systemd_exporter github.com/povilasv/systemd_exporter/systemd
src/github.com/povilasv/systemd_exporter/main.go:7:2: cannot find package "github.com/povilasv/prommod" in any of:
	/usr/lib/go-1.18/src/github.com/povilasv/prommod (from $GOROOT)
	/<<PKGBUILDDIR>>/_build/src/github.com/povilasv/prommod (from $GOPATH)
src/github.com/povilasv/systemd_exporter/systemd/cgroups.go:14:2: cannot find package "github.com/prometheus/common/log" in any of:
	/usr/lib/go-1.18/src/github.com/prometheus/common/log (from $GOROOT)
	/<<PKGBUILDDIR>>/_build/src/github.com/prometheus/common/log (from $GOPATH)
dh_auto_build: error: cd _build && go install -trimpath -v -p 2 github.com/povilasv/systemd_exporter github.com/povilasv/systemd_exporter/systemd returned exit code 1
make: *** [debian/rules:4: binary] Error 25

The first one, I understand, it's a dep that's missing. I am wondering
if I can just vendor that in, because it's just some shim code that's
unlikely to be used by other modules.

The latter I'm confused about. That module is correctly shipped by
golang-github-prometheus-common-dev so it should just work correctly...

Anything I'm missing here?

-- 
How inappropriate to call this planet 'Earth' when it is quite clearly
'Ocean'.
                        - Arthur C. Clarke


Reply to: