Originally reported here - https://github.com/pypa/pip/issues/13055 <!-- Describe the issue briefly here. --> #### Environment Versions 1. OS Type: MacOS 15.0.1, Ubuntu 24.04 1. Python version: `$ python -V` Python 3.9.6 1. pip version: `$ pip --version` pip 24.3.1 1. pip-tools version: `$ pip-compile --version` 7.4.1 #### Steps to replicate Sample repo in referred issue. # With pip 24.2 ``` backoff==2.2.1 # via -r requirements.in ``` # With pip 24.3.1 ``` backoff==2.2.1 # via -r /Users/rosen/Personal/sample/requirements.in ``` #### Expected result The relative references should be preserved #### Actual result Relative paths get replaced with absolute paths