-
-
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
Pipfile.lock creation does not expand environment variables #3048
Comments
Please provide a reproducible Pipfile. |
@uranusjr we are making the effort of creating a dumb python repository for you to try [packages]
click = "*"
kombu = "*"
"mypackage" = {editable = true, ref = "v0.0.1-rc9", git = "https://oauth2:${GITLAB_ACCESS_TOKEN}@gitlab.com/team/repository"} The env var This worked with It is hard to provide you with a reproducible Pipfile as we require this to clone from our own servers using https without enabling any outside access. |
Try |
I see the problem now… Pipfile only expands environment variables in the I am personally impartial on whether the expansion should extend to package entries, but there are a lot of implications there, you’ll need to submit a PEEP to kick off discussion. Closing since this is more or less “working as intended”. |
Issue description
When using an environment variable in a Pipfile,
pipenv install
is broken.It seems that the environment variable does not get expanded during the Pipfile.lock creation.
Expected result
A created Pipfile.lock file
Actual result
An error, typically 401 Unauthorized from Gitlab when clonning repo during the Pipfile.lock creation
Steps to replicate
pipenv install
with the environment variable sourced. The environment variable won't be expanded during Pipfile.lock creation.pipenv install --skip-lock
works fine. The environment variable is expanded.The text was updated successfully, but these errors were encountered: