Re:Go’s Major Versioning Sucks – From a Fanboy
by imtringued on Wednesday September 16, 2020 @08:26AM
(#24491922)
>There are disadvantages to both and in particular duplicating dependencies should be seen as a short-term fix for a transition, not something you do routinely.
If you don't duplicate versions then you will have to wait for every single library in existence to update to the latest major version. This can take decades and still fail. Just take a look at Python 3.
Re:Go’s Major Versioning Sucks – From a Fanboy
by yxhuvud on Wednesday September 16, 2020 @07:03AM
(#24491421)
Or even conflicts rising from competing use of state space in some other app. For example, if your database have a limited set of connections it can set up then you absolutely don't want different dependencies to handle connection pooling by themselves.
There are disadvantages to both and in particular duplicating dependencies should be seen as a short-term fix for a transition, not something you do routinely. If you do it routinely you'd see bugs due to shared locks, state, or changed data structures - it breaks assumptions about pkg globals for example, an important part of the language used extensively in the stdlib.