Support of NETRC environment variable
- From
- Rémi Debette <r.debette@instadeep.com>
- Date
- Dec 2, 2024, 17:36 UTC
- Message-ID
- <CAGinwDzTDexiXpwR0BGTTgX_9BcQ9N2RSea2UBTnyurCM0QRfg@mail.gmail.com>
Hi,
This email follows discussions on this issue in the uv project: https://github.com/astral-sh/uv/issues/9576
The uv project supports setting an environment variable called NETRC that allows setting a path to a .netrc file if this one is not in the expected home path ~/.netrc Their documentation describes it here: https://docs.astral.sh/uv/configuration/environment/#netrc
git supports authenticating through the .netrc home file, but it seems it does not recognize this NETRC environment variable. Would there be an alternative way to set an alternate path?
Thank you Rémi DEBETTE