Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error updating to latest package: otel issues #962

Open
mattoni opened this issue Jun 29, 2023 · 3 comments
Open

Error updating to latest package: otel issues #962

mattoni opened this issue Jun 29, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@mattoni
Copy link

mattoni commented Jun 29, 2023

Seems I'm having an issue updating to the latest Ogen, and it's driving me mad. Does anyone know how to solve this?

What version of ogen are you using?

v0.70.0

Can this issue be reproduced with the latest version?

Yes

What did you do?

go get github.com/ogen-go/ogen@latest

What did you expect to see?

A working dependency

What did you see instead?

❯ go mod tidy
go: finding module for package go.opentelemetry.io/otel/metric/global
go: finding module for package go.opentelemetry.io/otel/metric/instrument
github.com/cycleplatform/api-client-go/client imports
        go.opentelemetry.io/otel/metric/global: module go.opentelemetry.io/otel/metric@latest found (v1.16.0), but does not contain package go.opentelemetry.io/otel/metric/global
github.com/cycleplatform/api-client-go/client imports
        go.opentelemetry.io/otel/metric/instrument: module go.opentelemetry.io/otel/metric@latest found (v1.16.0), but does not contain package go.opentelemetry.io/otel/metric/instrument
@mattoni mattoni added the bug Something isn't working label Jun 29, 2023
@tdakkota
Copy link
Member

tdakkota commented Jul 1, 2023

You need to update opentelemetry packages too, ogen usually requries the latest version.

@mattoni
Copy link
Author

mattoni commented Jul 6, 2023

Yeah, I did that but i was still running into the issue. Any combination of the invalid packages seems to not work and I can't do go mod tidy.

@tdakkota
Copy link
Member

tdakkota commented Jul 6, 2023

Try to run ogen with explictly set version:

$ go run github.com/ogen-go/ogen/cmd/[email protected] <flags...>

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

No branches or pull requests

2 participants