-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
C: configurationConfiguration management and loadingConfiguration management and loadingC: outputRelated to what pip printsRelated to what pip printstype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior
Description
Description
pip config debug
doesn't correctly separate options as set by the different files.
env_var:
env:
global:
/Library/Application Support/pip/pip.conf, exists: False
site:
/Users/pgedam/Developer/github/pip/.venv/pip.conf, exists: False
user:
/home/pgedam/.pip/pip.conf, exists: True
install.require-virtualenv: true
global.timeout: 60
/home/pgedam/.config/pip/pip.conf, exists: True
install.require-virtualenv: true
global.timeout: 60
Expected behavior
It should show which configuration options are loaded from which file:
env_var:
env:
global:
/Library/Application Support/pip/pip.conf, exists: False
site:
/Users/pgedam/Developer/github/pip/.venv/pip.conf, exists: False
user:
/home/pgedam/.pip/pip.conf, exists: True
install.require-virtualenv: true
/home/pgedam/.config/pip/pip.conf, exists: True
global.timeout: 60
pip version
main, 20.3+
Python version
N/A
OS
N/A
How to Reproduce
- Create two configuration files as a user.
- Provide different configuration values in them.
- Run
pip config debug
and see the output.
Output
(in description)
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Metadata
Metadata
Assignees
Labels
C: configurationConfiguration management and loadingConfiguration management and loadingC: outputRelated to what pip printsRelated to what pip printstype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior