-
-
Notifications
You must be signed in to change notification settings - Fork 629
Open
Labels
annotationsRelated to packages annotationsRelated to packages annotationsenhancementImprovements to functionalityImprovements to functionalityfeatureRequest for a new featureRequest for a new feature
Description
When pip-compile adds annotations for packages from files included with -r
it uses a path relative to the current directory pip-compile is called from, instead of relative to the file it is writing to.
It should be -r base.in
not -r requirements/base.in
(see below).
This might be solved by #1067.
Environment Versions
- Linux
- Python version: 3.7.6
- pip version: 20.0.2
- pip-tools version: 4.5.1
Steps to replicate
requirements/base.in:
ujson
requirements/extra.in:
-r base.in
- pip-compile --annotate --no-header --generate-hashes requirements/extra.in
Expected result
extra.txt:
ujson==1.35 \
--hash=sha256:f66073e5506e91d204ab0c614a148d5aa938bdbf104751be66f8ad7a222f5f86 \
# via -r base.in
Actual result
extra.txt:
ujson==1.35 \
--hash=sha256:f66073e5506e91d204ab0c614a148d5aa938bdbf104751be66f8ad7a222f5f86 \
# via -r requirements/base.in
kshpytsya
Metadata
Metadata
Assignees
Labels
annotationsRelated to packages annotationsRelated to packages annotationsenhancementImprovements to functionalityImprovements to functionalityfeatureRequest for a new featureRequest for a new feature