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
Thanks for the great tool. I use pip-compile to manage a large production Python environment, and one of the main pain-points I've found is that when an upstream change leads to a conflict, it can often be quite difficult to ascertain the cause of the failure.
For example, consider the following requirements.in file, which in my case can have several dozen listed dependencies:
# requirements.in# ... several dozen packages
google-cloud-bigquery~=1.14.0
# ... several dozen more packages
tensorflow-data-validation~=0.13.1
# ... several dozen more packages
If you run this through pip compile, it finds a conflict:
but this error contains no information about the provenance of the conflicting constraints, and so it is not much help in ascertaining the cause of the conflict.
I have a partial solution to this in jakevdp@c33cafc; it works by propagating combined comes_from metadata as a string in the combined constraints. The result for the above requirements looks like this:
It's not perfect or pretty, but it makes debugging these kinds of dependency conflicts much easier.
My solution is admittedly a bit of a hack (which is why this is an issue rather than a pull request) but I was wondering if there are better solutions I am overlooking, or if you'd be open to a contribution along these lines if I put in some effort to clean up my approach.
Thanks!
The text was updated successfully, but these errors were encountered:
Thanks for raising this issue! I would love to see this feature in pip-tools. Please, don't hesitate to shoot a "WIP" PR. I hope we can implement it cooperatively.
Thanks for the great tool. I use pip-compile to manage a large production Python environment, and one of the main pain-points I've found is that when an upstream change leads to a conflict, it can often be quite difficult to ascertain the cause of the failure.
For example, consider the following requirements.in file, which in my case can have several dozen listed dependencies:
If you run this through pip compile, it finds a conflict:
but this error contains no information about the provenance of the conflicting constraints, and so it is not much help in ascertaining the cause of the conflict.
I have a partial solution to this in jakevdp@c33cafc; it works by propagating combined
comes_from
metadata as a string in the combined constraints. The result for the above requirements looks like this:It's not perfect or pretty, but it makes debugging these kinds of dependency conflicts much easier.
My solution is admittedly a bit of a hack (which is why this is an issue rather than a pull request) but I was wondering if there are better solutions I am overlooking, or if you'd be open to a contribution along these lines if I put in some effort to clean up my approach.
Thanks!
The text was updated successfully, but these errors were encountered: