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

[BUG] go.mod tidy fails due to unresolved module in dd-trace-go #3059

Open
klaus-ziegert opened this issue Dec 26, 2024 · 0 comments
Open

[BUG] go.mod tidy fails due to unresolved module in dd-trace-go #3059

klaus-ziegert opened this issue Dec 26, 2024 · 0 comments
Labels
bug unintended behavior that has to be fixed needs-triage New issues that have not yet been triaged

Comments

@klaus-ziegert
Copy link

klaus-ziegert commented Dec 26, 2024

Version of dd-trace-go
gopkg.in/DataDog/dd-trace-go.v1 v1.70.1

Describe what happened:
When adding the following import statement in a Go file:

package main

import _ "gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"

and running go get -u -t ./... followed by go mod tidy, the following error occurs:

go: downloading k8s.io/apimachinery v0.25.5
go: downloading github.com/rogpeppe/go-internal v1.10.0
go: finding module for package go.opentelemetry.io/collector/pdata/internal/data/protogen/profiles/v1experimental
go: finding module for package go.opentelemetry.io/collector/pdata/internal/data/protogen/collector/profiles/v1experimental
go: test imports
	gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer imports
	github.com/DataDog/datadog-agent/pkg/trace/stats imports
	github.com/DataDog/datadog-agent/pkg/trace/transform imports
	github.com/DataDog/datadog-agent/pkg/trace/sampler tested by
	github.com/DataDog/datadog-agent/pkg/trace/sampler.test imports
	go.opentelemetry.io/collector/processor/processortest imports
	go.opentelemetry.io/collector/pdata/testdata imports
	go.opentelemetry.io/collector/pdata/pprofile imports
	go.opentelemetry.io/collector/pdata/internal/data/protogen/collector/profiles/v1experimental: module go.opentelemetry.io/collector/pdata@latest found (v1.22.0), but does not contain package go.opentelemetry.io/collector/pdata/internal/data/protogen/collector/profiles/v1experimental
go: test imports
	gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer imports
	github.com/DataDog/datadog-agent/pkg/trace/stats imports
	github.com/DataDog/datadog-agent/pkg/trace/transform imports
	github.com/DataDog/datadog-agent/pkg/trace/sampler tested by
	github.com/DataDog/datadog-agent/pkg/trace/sampler.test imports
	go.opentelemetry.io/collector/processor/processortest imports
	go.opentelemetry.io/collector/pdata/testdata imports
	go.opentelemetry.io/collector/pdata/pprofile imports
	go.opentelemetry.io/collector/pdata/internal/data/protogen/profiles/v1experimental: module go.opentelemetry.io/collector/pdata@latest found (v1.22.0), but does not contain package go.opentelemetry.io/collector/pdata/internal/data/protogen/profiles/v1experimental

Describe what you expected:
I expected go mod tidy to resolve all module dependencies and clean up the go.mod and go.sum files without encountering unresolved dependencies.

Steps to reproduce the issue:
Image

Additional environment details (Version of Go, Operating System, etc.):
go version go1.23.4 darwin/arm64

@klaus-ziegert klaus-ziegert added the bug unintended behavior that has to be fixed label Dec 26, 2024
@github-actions github-actions bot added the needs-triage New issues that have not yet been triaged label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unintended behavior that has to be fixed needs-triage New issues that have not yet been triaged
Projects
None yet
Development

No branches or pull requests

1 participant