File: 01-Use_go_generate.patch

package info (click to toggle)
golang-github-prometheus-client-model 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 204 kB
  • sloc: makefile: 58
file content (11 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
Description: Use go generate to regenerate metrics.pb.go from .proto source
 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.
Forwarded: not-needed
--- /dev/null
+++ b/go/generate.go
@@ -0,0 +1,3 @@
+package io_prometheus_client
+
+//go:generate protoc --proto_path=../io/prometheus/client --go_out=paths=source_relative:. metrics.proto