pip-compile --upgrade-package removes "via" annotation from lock file #929
Labels
annotations
Related to packages annotations
bug
Something is not working
PR wanted
Feature is discussed or bug is confirmed, PR needed
pip-compile --upgrade
removes source annotations (e.g.# via jinja2
).Environment Versions
3.6.6
19.2.3
4.1.0
Steps to replicate
Prepare virtualenv:
Prepare lock file:
Let's upgrade markupsafe:
Problem is that
# via jinja2
marker was removed.--upgrade-package
shouldn't remove the annotation, as intention was merely to upgrade it. It is still required via jinja2 and not directly (it's not inrequirements.in
)On the other hand, I understand that I now directly influenced the package version, so annotation gets removed. But still, my initial assumption was that marker would remain.
So I am not sure about this one. Is current behavior intentional?
The text was updated successfully, but these errors were encountered: