pypa / hatch

Modern, extensible Python project management
https://hatch.pypa.io/latest/
MIT License
6.11k stars 309 forks source link

Setting up an environment appears to hang when pip conf has a private index #1802

Open djcopley opened 2 weeks ago

djcopley commented 2 weeks ago

Syncing an environment with a dependency from a private package index that lacks configured credentials causes hatch to hang. If you use the -v flag, you can see pip is prompting for a password.

Steps to reproduce

  1. Add a private package index to user pip.conf
  2. Add a dependency to a python project from the private index
  3. Run hatch shell

Possible solutions

Adding the --no-input flag to pip installs, would prevent pip from prompting the user for credentials.