-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Injecting credentials broken #5878
Comments
We experience a similar issue: after upgrading to 2023.8.26, We are using 90 packages from PyPI and one package from a private Gitlab package index. Unfortunately I cannot share the private registry (it's private :D) but a sample Pipfile which triggers the problem:
|
Also, do you know if this just started in |
We just tested |
@matteius The entry that fails is the following: The artifactory index is declared in the pipfile:
I think our scenario is pretty much identical to that from @eht16 |
Hmm, I just subbed out part of my pytorch index with an env var and it seemed to work fine:
I am not sure where its breaking in your case -- anything stand out in the diff? v2023.8.25...v2023.8.26 My hunch is maybe the cached_property is causing it, but I am honestly at a loss currently without being able to reproduce it. |
@matteius is your private repo protected with authentication? Because I read pipenv does something to hash the credentials that are provided, I suspect maybe something goes wrong while hashing? |
No, this is just the public pytorch repo, I thought this has something to do with using an env var in the source URL.
I am not sure -- do you have a link to this topic? Just from a code perspective, it has to be something that changed in that diff between .25 and .26 ... nothing stands out in that department to me yet. |
It's definitely an issue with credentials, not with injecting env vars.
|
Are you able to check if this fixes it? #5882 I am not 100% sure it will, but of any change between 25 and 26 this is my hunch. 🍿 |
@matteius No it is the other cached_property that's causing the bug. 8716271#diff-62e85156fc3b274046cc03dabfe6e3ceead503f330b98fb3611645216b4b6e1fR301 |
Thanks @pinguin999 I made the change -- but added back cached_property on the other method -- would be nice to know that will work (or do both methods need the cached_property removed)? |
It worked for me with only changing back the 8716271#diff-62e85156fc3b274046cc03dabfe6e3ceead503f330b98fb3611645216b4b6e1fR301 |
Please try |
Resolved for me, thanks! |
Issue description
Upgrading to the latest version of pipenv via HomeBrew breaks injecting credentials using environment variables.
Expected result
pipenv install
installs dependencies from private repositories.Actual result
Steps to replicate
pipenv install
The text was updated successfully, but these errors were encountered: