opencensus-go-exporter-stackdriver icon indicating copy to clipboard operation
opencensus-go-exporter-stackdriver copied to clipboard

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

Open hueich opened this issue 2 years ago • 1 comments

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.

hueich avatar Mar 28 '23 22:03 hueich

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/[email protected]

dashpole avatar Jun 26 '23 13:06 dashpole