Hi,

On 22.12.22 00:41, Shengjing Zhu wrote:
Hi,

The workaroud could be like this:
https://salsa.debian.org/go-team/packages/notary/-/commit/b0a072faa72857f7523c8245ecaa8814d5a60051

Fixing the build failure in golang-github-prometheus-client-model is a simple matter of including golang-google-protobuf-dev in the build-deps.

However, as the resulting metrics.pb.go now has a different type for the timestamp fields, and downstream packages that use this will likely need patching.

I already had to patch golang-github-prometheus-common[1] and golang-github-prometheus-client-golang[2] for similar issues not long ago. With those patches in place, and the new metrics.pb.go, those packages FTBFS. Dropping those patches fixes the build, but prometheus-common then panics with a Go reflect error in one of the tests.

So I'm not really sure of the best course of action at the moment.

[1]: https://salsa.debian.org/go-team/packages/golang-github-prometheus-common/-/blob/debian/sid/debian/patches/01-support-outdated-protobuf-build-deps.patch [2]: https://salsa.debian.org/go-team/packages/golang-github-prometheus-client-golang/-/blob/debian/sid/debian/patches/02-support-outdated-protobuf-build-deps.patch

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to