-
Notifications
You must be signed in to change notification settings - Fork 882
v1.47.0 Introduces a missing link on dependencies #7119
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
Comments
It's been changed to a compile-time dependency only, so if you want to use the incubator module, you'll need to add it as an explicit dependency. Not a bug. Very much intentional. |
Thanks for your response!
We don't want to use the incubator module explicitly. The problem is a developer's not going to know whether
The problem here is we get the reverse warning now, we get an "unused dependency" warning when we add the dependency |
I think the confusing bit here is just that Gradle has its opinions re optional dependencies https://blog.gradle.org/optional-dependencies. Normally in this situation you might imagine https://repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-trace/1.47.0/opentelemetry-sdk-trace-1.47.0.pom having an optional dependency on incubator, but Gradle doesn't agree with this concept. That being said, it does seem like https://repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-trace/1.47.0/opentelemetry-sdk-trace-1.47.0.module would ideally have this capabilities field, and maybe as a convenience to non Gradle people the pom could have a declared optional dependency? |
This is a strange error for sbt to generate. It implies that all
For a runtime error to occur, the code that calls those methods would need to have a |
@Thrillpool thanks for sharing that link! I've attempted to use the gradle features concept in #7137 |
Describe the bug
We are now getting this failure in our (sbt) build during a routine missingLinkDependency check:
From a quick investigation, looks like #6944 removes the incubator dependency from the classpath, but I see it's still being referenced in places like ExtendedSdkSpanBuilder
Steps to reproduce
What version and what artifacts are you using?
Artifacts:
opentelemetry-trace
Version: 1.47.0
The text was updated successfully, but these errors were encountered: