Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

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

Open
hueich opened this issue Mar 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@hueich
Copy link

hueich commented Mar 28, 2023

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 hueich added the bug Something isn't working label Mar 28, 2023
@dashpole
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants