This repository has been archived by the owner on Jun 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
Potential dependency conflicts between django-netjsongraph and django #125
Comments
Suggested Solution
|
\imo: I think if it is an issue, loosening django version range is not the solution but tightening jsonfield version may be the solution. 😄 Let me know your thoughts! 😄 P.S: Originally such wide range for jsonfield was chosen to avoid making pull requests again and again to update for minor changes that doesn't require any human intervention; in case it can cause problem, tighten range sounds good to me! 😄 |
@atb00ker Thanks for your feedback. I agree with your oppinion. Changing the version constraint of jsonfield to be <=3.1.0 is a good solution. |
Go for it, thank you guys. 👍 |
NeolithEra
added a commit
to NeolithEra/django-netjsongraph
that referenced
this issue
May 12, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, as shown in the following full dependency graph of django-netjsongraph, django-netjsongraph requires django >=2.2,<3.1 , while the installed version of django (3.0.6) ,jsonfield 3.1.0 requires django >=2.2.
According to Pip's “first found wins” installation strategy, django 3.0.6 is the actually installed version.
Although the first found package version django 3.0.6 just satisfies the later dependency constraint (django >=2.2), it will easily cause a build failure once the updated jsonfield introduces a higher version of django
According to the release history of jsonfield, it habitually upgrates django in its recent releases. For instance, jsonfield 2.0.0 upgrated django’s constraint from >=1.4.3 to >=1.8.0, jsonfield 2.0.1 upgrated django’s constraint from >=1.8.0 to >=1.11, and jsonfield 3.0.0 upgrated django’s constraint from >=1.11 to >=2.2.
Dependency tree
Thanks for your help.
Best,
Neolith
The text was updated successfully, but these errors were encountered: