go-testfixtures / testfixtures

Ruby on Rails like test fixtures for Go. Write tests against a real database
https://pkg.go.dev/github.com/go-testfixtures/testfixtures/v3?tab=doc
MIT License
1.12k stars 80 forks source link

Import failing github.com/ClickHouse/ch-go v0.55.0 - cannot find module providing package go.opentelemetry.io/otel/metric/global #172

Closed anthonyjacques20 closed 1 year ago

anthonyjacques20 commented 1 year ago

Latest version uses github.com/ClickHouse/ch-go@v0.55.0 which has an error with go.opentelemetry.io/otel/metric/global: cannot find module providing package go.opentelemetry.io/otel/metric/global

Clickhouse upgraded to fix this error so the ClickHouse version needs to be upgraded

anthonyjacques20 commented 1 year ago

I was only able to replicate this error when running in my existing repo:

$ go get github.com/ClickHouse/ch-go@v0.55.0
github.com/ClickHouse/ch-go imports
    go.opentelemetry.io/otel/metric/global: cannot find module providing package go.opentelemetry.io/otel/metric/global

But when creating a new repo and running go get github.com/ClickHouse/ch-go@v0.55.0, then I was getting no errors so I knew it had to be something specific to my repo.

Turns out my repo was already importing a newer version of go.opentelemetry.io/otel/metric that doesn't have the global package. So I'm not able to use both of these imports since the metric package changed and conflicts.