-
Notifications
You must be signed in to change notification settings - Fork 441
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] compile error after dependency update to version 1.70.1 #3011
Comments
@mibo-fdc Thanks for reaching out. The root cause for this error is A workaround for this is to run |
Thanks for the fast response. I tried your workaround, but the error stays the same. I know have |
@mibo-fdc It should be enough. See the screenshot below: Did you run again
I did it locally and it also worked (after running again |
No, I did not update the version again after the go get. |
As suggested in DataDog/go-runtime-metrics-internal#10 the go-runtime-metrics-internal has been tagged with explicit versions. This should have already fixed #3011 as future `go get -u ./...` invocations should resolve to v0.0.2. Relevant quote from the go module reference at https://go.dev/ref/mod#version-queries: > The string latest, which selects the highest available release > version. If there are no release versions, latest selects the highest > pre-release version. If there are no tagged versions, latest selects a > pseudo-version for the commit at the tip of the repository’s default > branch. Fixes #3011
As suggested in DataDog/go-runtime-metrics-internal#10 the go-runtime-metrics-internal has been tagged with explicit versions. This should have already fixed #3011 as future `go get -u ./...` invocations should resolve to v0.0.3 (same as v0.0.1). Relevant quote from the go module reference at https://go.dev/ref/mod#version-queries: > The string latest, which selects the highest available release > version. If there are no release versions, latest selects the highest > pre-release version. If there are no tagged versions, latest selects a > pseudo-version for the commit at the tip of the repository’s default > branch. Fixes #3011
As suggested in DataDog/go-runtime-metrics-internal#10 the go-runtime-metrics-internal has been tagged with explicit versions. This should have already fixed #3011 as future `go get -u ./...` invocations should resolve to v0.0.3 (same as v0.0.1). See the issue above for more details. Fixes #3011
This should be fixed now. See this comment for more details and how we're planning to prevent this kind of issue from appearing again in the future. Sorry for the trouble this caused 🙇 |
Version of dd-trace-go
1.70.1
Describe what happened:
After dependency upgrades this compile error is raised from the package:
gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer
gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer
../../../../../go/pkg/mod/gopkg.in/!data!dog/[email protected]/ddtrace/tracer/tracer.go:339:34: cannot use t.statsd (variable of type "gopkg.in/DataDog/dd-trace-go.v1/internal".StatsdClient) as runtimemetrics.partialStatsdClientInterface value in argument to runtimemetrics.Start: "gopkg.in/DataDog/dd-trace-go.v1/internal".StatsdClient does not implement runtimemetrics.partialStatsdClientInterface (missing method DistributionSamples)
Describe what you expected:
No compiler error. It seems to be dependency-related, but the error is from the library itself. I see no combination of dependency updates that causes this.
Steps to reproduce the issue:
Dependency update with
go get -u ./...
andgo mod tidy
. After this, the error above occurred in the builds.Additional environment details (Version of Go, Operating System, etc.):
Go 1.23.4, across operation systems (this error also occurs on CI/Linux and on macOS)
The text was updated successfully, but these errors were encountered: