Giter Site home page Giter Site logo

Comments (4)

psalaberria002 avatar psalaberria002 commented on May 30, 2024

Is there any workaround for this? I just hit the issue when importing https://github.com/open-telemetry/opentelemetry-go/blob/v1.5.0/exporters/otlp/otlptrace/internal/otlpconfig/envconfig.go#L15

from bazel-gazelle.

purkhusid avatar purkhusid commented on May 30, 2024

I'm hitting the same issue when trying to use OpenTelemetry packages. Are ther any known workarounds?

from bazel-gazelle.

psalaberria002 avatar psalaberria002 commented on May 30, 2024

I'm hitting the same issue when trying to use OpenTelemetry packages. Are ther any known workarounds?

I think it got fixed for us when we upgraded to the latest version.

$ cat go.mod | grep opent
        go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin v0.40.0
        go.opentelemetry.io/otel v1.14.0
        go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.14.0
        go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.14.0
        go.opentelemetry.io/otel/sdk v1.14.0
        go.opentelemetry.io/otel/trace v1.14.0
        github.com/opentracing/opentracing-go v1.2.0 // indirect
        go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.14.0 // indirect
        go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.14.0 // indirect
        go.opentelemetry.io/proto/otlp v0.19.0 // indirect

from bazel-gazelle.

jayconrod avatar jayconrod commented on May 30, 2024

This issue shouldn't be relevant anymore now that GOPATH is mostly dead.

It was referring specifically to comments like this:

package otlpconfig // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlpconfig"

Before Go modules, the go tool checked that if the canonical import path was set, it matched the directory within $GOPATH. It was possible to download a package to the wrong path manually or by using a non-canonical path that mapped to the same repository like github.com/open-telemetry/opentelemetry-go.

This issue was meant to add that feature to Gazelle, but since GOPATH is basically deprecated, and modules don't support canonical import paths (the module path in go.mod serves that purpose), this feature isn't needed.

from bazel-gazelle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.