You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ie. package A depends on C ~=1.0, B depends on C ~=2, C has versions 1 and 2, but the subset depended on in A is actually semantically compatible with version 2, so it would work, just that the allowed version specifier for A is overly restrictive (and likely the developer hasn't tested with that config specifically)
Would be useful to be able to do something like:
[dependencies]
A = "*"B = "*"
[dependencies.overrides]
C = 2
Then version constraints for depending on C would be ignored and we just use whatever is specified.
Not sure if this gets more complicated when including pypi-dependencies.
The text was updated successfully, but these errors were encountered:
I would like to propose nested overrides similar to how NPM does it. 1, 2, 3
For example, suppose surya depends on opencv-python and I want a different version. You can just add an overrides section to your package.json specify the sub-dependency you want to override:
{
"overrides": {
"opencv-python": "2.3.0"
}
}
For more specific overrides, you can target nested dependencies:
Problem description
ie. package
A
depends onC ~=1.0
,B
depends onC ~=2
,C
has versions1
and2
, but the subset depended on inA
is actually semantically compatible with version2
, so it would work, just that the allowed version specifier forA
is overly restrictive (and likely the developer hasn't tested with that config specifically)Would be useful to be able to do something like:
Then version constraints for depending on
C
would be ignored and we just use whatever is specified.Not sure if this gets more complicated when including pypi-dependencies.
The text was updated successfully, but these errors were encountered: