digitalocean / prometheus-client-c

A Prometheus Client in C
Other
158 stars 78 forks source link

Broken build due to outdated go version #58

Open a-rose opened 3 years ago

a-rose commented 3 years ago

Hi,

Building with make led me to the error below:

gopath/src/github.com/golang-jwt/jwt/ecdsa.go:135:4: r.FillBytes undefined (type *big.Int has no field or method FillBytes)
gopath/src/github.com/golang-jwt/jwt/ecdsa.go:136:4: s.FillBytes undefined (type *big.Int has no field or method FillBytes)

This can be fixed by upgrading Go to the latest stable release (go1.16.7 at the time of writing) in docker.sh.

Thanks :)

edit: some more changes are needed after upgrading; need to add @latest after prom2json and git-chlo

GOPATH=/gopath /usr/local/go/bin/go install github.com/prometheus/prom2json/cmd/prom2json@latest && \
GOPATH=/gopath /usr/local/go/bin/go get github.com/git-chglog/git-chglog && \
GOPATH=/gopath /usr/local/go/bin/go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest && \
rm -rf /var/lib/apt/lists/*
tymon42 commented 2 years ago

The same.

a-rose commented 2 years ago

I submitted a PR for this last week: https://github.com/digitalocean/prometheus-client-c/pull/62