As a v0.x.y module, it's explicitly signaling that it may introduce 
incompatible changes between minor versions, as has happened here. 
unfortunately for you, a module can only exist at a single version within a 
build, so you'll have to modify your dependencies.
Some time ago, OpenTelemetry graduated their tracing APIs to stable (v1), 
committing to maintaining backwards compatibility, so you may want to look 
at upgrading both your dependencies to target the new, stable version of 
OpenTelemetry

On Monday, March 7, 2022 at 5:02:06 PM UTC Tamás Gulácsi wrote:

> Sorry to say, but *go.opentelemetry.io/otel 
> <http://go.opentelemetry.io/otel>* is a dumpster fire of API breakage and 
> flux.
> I don't know other solution than modify a or b to use the same version of 
> otel.
>
> ian.zh...@gmail.com a következőt írta (2022. március 7., hétfő, 17:49:17 
> UTC+1):
>
>> Hi team,
>>
>> I'm working on a new package, *demo*, which has a dependency on *a* and 
>> *b*.
>>
>> Both *a* and *b* are pointing to `go.opentelemetry.io/otel` 
>> <http://go.opentelemetry.io/otel>
>>
>> *a* points to *go.opentelemetry.io/otel 
>> <http://go.opentelemetry.io/otel>* v0.20.0
>> *b* points to *go.opentelemetry.io/otel 
>> <http://go.opentelemetry.io/otel>* v0.25.0
>>
>> However, the *go.opentelemetry.io/otel <http://go.opentelemetry.io/otel>* 
>> introduced break changes between these 2 versions.
>> At *v0.25.0*, it dropped some functions that exist in *v0.20.0* and 
>> *v0.25.0* has some new functions.
>>
>> In my *demo*, the *go mod tidy* would point to v0.20.0, in this way, it 
>> breaks the dependency of *b.*
>>
>> I tried to modify the *go.mod *of *demo* in order to find a common 
>> version between *a* and *b*, but I can't 
>> find such. 
>>
>> I wonder if there's a way to let *go mod* to allow specific module 
>> versions for *a* and *b. *If not, what's other 
>> possible ways to solve this issue?
>>
>>
>> Looking forward to your reply.
>> Ian
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a3633b24-7755-4b49-b605-f9e24da79a77n%40googlegroups.com.

Reply via email to