aristanetworks / goarista

Fairly general building blocks used in Arista Go code and open-sourced for the benefit of all.
Apache License 2.0
213 stars 68 forks source link

ocprometheus build fails #40

Closed aned closed 5 years ago

aned commented 5 years ago

go get github.com/aristanetworks/goarista/cmd/ocprometheus


# github.com/prometheus/client_model/go
prometheus/client_model/go/metrics.pb.go:96:31: undefined: proto.InternalMessageInfo
prometheus/client_model/go/metrics.pb.go:141:27: undefined: proto.InternalMessageInfo
prometheus/client_model/go/metrics.pb.go:179:29: undefined: proto.InternalMessageInfo
prometheus/client_model/go/metrics.pb.go:218:30: undefined: proto.InternalMessageInfo
prometheus/client_model/go/metrics.pb.go:265:29: undefined: proto.InternalMessageInfo
prometheus/client_model/go/metrics.pb.go:317:29: undefined: proto.InternalMessageInfo
prometheus/client_model/go/metrics.pb.go:357:31: undefined: proto.InternalMessageInfo
prometheus/client_model/go/metrics.pb.go:410:28: undefined: proto.InternalMessageInfo
prometheus/client_model/go/metrics.pb.go:461:28: undefined: proto.InternalMessageInfo
prometheus/client_model/go/metrics.pb.go:544:34: undefined: proto.InternalMessageInfo
prometheus/client_model/go/metrics.pb.go:544:34: too many errors
# github.com/aristanetworks/goarista/gnmi
aristanetworks/goarista/gnmi/operation.go:212:12: undefined: gnmi.TypedValue_ProtoBytes
aned commented 5 years ago

go get -u github.com/golang/protobuf/proto fixes "undefined: proto.InternalMessageInfo"

The build is still failing:


go get github.com/aristanetworks/goarista/cmd/ocprometheus
# github.com/aristanetworks/goarista/gnmi
aristanetworks/goarista/gnmi/operation.go:212:12: undefined: gnmi.TypedValue_ProtoBytes
aaronbee commented 5 years ago

You would need to update as well github.com/openconfig/gnmi:

go get -u github.com/openconfig/gnmi

aned commented 5 years ago

Thank you, go get -u github.com/openconfig/gnmi/cmd/gnmi_cli did the trick!