Commit 82180a6c authored by Martina Ferrari's avatar Martina Ferrari

Use go generate to avoid depending on special make rules.

parent 8bbaa2e1
Description: Use go generate to avoid depending on special make rules in
debian/rules; this allows the CI pipeline in salsa to test the package
properly.
--- /dev/null
+++ b/go/generate.go
@@ -0,0 +1,3 @@
+package io_prometheus_client
+
+//go:generate protoc --proto_path=.. --go_out=. ../metrics.proto
01-Use_go_generate.patch
#!/usr/bin/make -f
export DH_GOLANG_GO_GENERATE := 1
%:
dh $@ --buildsystem=golang --with=golang
go/metrics.pb.go:
$(MAKE) go/metrics.pb.go
override_dh_auto_configure: go/metrics.pb.go
dh_auto_configure
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment