PBR

the context directory is lost in nested requirements files

Bug #1766298 reported by d t
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PBR
Confirmed
Medium
Unassigned

Bug Description

I have a directory with requirements files, where one file reference the others, for example:
- requirements
  - all.txt
  - foo.txt
  - bar.txt

where all.txt is:
-r foo.txt
-r bar.txt

When calling pbr.packaging.parse_requirements(['requirements/all.txt']), pbr loses the context directory and will try to look for foo.txt in the root directory instead of the requirements directory.

Tags: requirements
Revision history for this message
Ben Nemec (bnemec) wrote :

This may be tricky to fix. Currently pbr doesn't keep track of which file a given requirement line comes from, so there's no way to figure out the base directory for relative paths like this.

Changed in pbr:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.