census-ecosystem / opencensus-go-exporter-stackdriver

OpenCensus Go exporter for Stackdriver Monitoring and Trace
Apache License 2.0
67 stars 79 forks source link

Error while updating imports: cannot find module providing package github.com/prometheus/prometheus/model/value #320

Open hueich opened 1 year ago

hueich commented 1 year ago

Please answer these questions before submitting a bug report.

What version of the Exporter are you using?

v0.13.14

What version of OpenCensus are you using?

Haven't gotten there yet

What version of Go are you using?

1.20.1

What did you do?

If possible, provide a recipe for reproducing the error.

My go.mod had contrib.go.opencensus.io/exporter/stackdriver at v0.13.12, and I wanted to update it to v0.13.14.

I was updating the import with the following:

$ go get -u contrib.go.opencensus.io/exporter/stackdriver

What did you expect to see?

The import update should work without error

What did you see instead?

I got this error:

contrib.go.opencensus.io/exporter/stackdriver imports
        github.com/prometheus/prometheus/model/value: cannot find module providing package github.com/prometheus/prometheus/model/value

Then the version failed to be updated.

Additional context

Add any other context about the problem here.

dashpole commented 1 year ago

You will also need to update your prometheus dependency to match what opencensus uses, as prometheus moved some packages around.

go get github.com/prometheus/prometheus@v0.35.0