How do you establish a relationship on a library such that a breaking change in the library forces an update on all dependencies?
2
votes
1
answer
102
views
Let's say I have two packages and a library, all at version 1.
*
PackageFoo
version 1.
* PackageBar
version 1.
* LibBaz
version 1.
Now,
* PackageFoo
requires LibBaz
* PackageBar
requires LibBaz
However, let's say at some point LibBaz
introduces a BREAKING CHANGE... let's call it Version 2.0. This change is such that we know all prior dependencies on LibBaz
version 1.0 will need to be updated.
* PackageFoo
version 2.0 is shipped concurrently to use the newer version of LibBaz
version 2.0
* but, LibBaz
version 1.0 is known to conflict with PackageFoo
prior to version 2.
How do we ensure installing a newer version of LibBaz
(version 2.0) will FORCE an update on PackageFoo
(ideally all packages that depend on LibBaz
version 1) or prevent the update to LibBaz
?
----
_The library in this question can not be installed alongside another version of the same library, unlike in C._
Asked by Evan Carroll
(34663 rep)
Aug 19, 2024, 03:15 PM
Last activity: Aug 20, 2024, 12:41 PM
Last activity: Aug 20, 2024, 12:41 PM