-
-
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
Private repos and --skip-lock strange behavior #5654
Comments
@scastria Can you try adding to your Pipfile:
More details: https://pipenv.pypa.io/en/latest/indexes/ |
@matteius Unfortunately, that does not make a difference. Also, just as a reminder, running WITHOUT --skip-lock works fine even without the above install_search_all suggestion |
@scastria side question -- why even use What if you leave the Additionally, |
@matteius That is a good question. My company started using pipenv last year around May and back then, it would sometimes take 10 minutes to run a pipenv install. We discovered that if we added --skip-lock, it only took 30 seconds or less. Therefore, we all got in the habit of avoiding the lock file and have never looked back. But I do agree that we are bypassing a lot of the great features of pipenv by doing so. Our private package only depends on public packages. Changing the default repo/index and specifying public packages to come from pypi would be too big of an impact on all of our repos. Let me try the patch branch... |
@scastria Yeah, I personally would like to remove the When I originally did my work on index restricted packages, I mostly ignored the code paths for skip-lock because as a feature it didn't make sense to me, and working from the Pipfile is a whole different beast than working from the lockfile in so many ways. Let me know though if that skip lock branch doesn't resolve it and I can tag this issue appropriately. |
@matteius Not sure I did it right, but I installed the patch branch with this??
That gave me version: Using this version had no effect with my original Pipfile. However, it DID work after adding the install_search_all setting! |
@scastria Cool, so the take away there is that pip 23.x basically caused users to required the |
@scastria Also would love to implore you to see if the performance of pipenv sync is better for you in newer versions and just run with the lockfile. All of the python package managers have been improving their performance over the last year: https://lincolnloop.github.io/python-package-manager-shootout/ |
Thanks, I will try. |
Expecting a release in the next week. |
Issue description
There seems to be some issue with private repos and the usage of --skip-lock. I have a private repo in AWS CodeArttifact. If I setup my Pipfile with the private repo as a [[source]] listed at the top and specify my private package with the index pointing to the private repo, pipenv install works but pipenv install --skip-lock does not. However, if I remove the [[source]] at the top and remove the index setting on the private package, but setup PIP_EXTRA_INDEX_URL as env variable in my shell, then pipenv install --skip-lock DOES work. It behaves as if using --skip-lock does not pass the credentials to the private repo to allow it to resolve.
Expected result
pipenv install --skip-lock to resolve private package
Actual result
Steps to replicate
Provide the steps to replicate (which usually at least includes the commands and the Pipfile).
Please run
$ pipenv --support
, and paste the results here. Don't put backticks (`
) around it! The output already contains Markdown formatting.$ pipenv --support
Pipenv version:
'2023.3.20'
Pipenv location:
'/opt/homebrew/lib/python3.10/site-packages/pipenv'
Python location:
'/opt/homebrew/opt/[email protected]/bin/python3.10'
OS Name:
'posix'
User pip version:
'23.0.1'
user Python installations found:
3.10.8
:/opt/homebrew/bin/python3
3.10.8
:/usr/local/bin/python
3.9.15
:/opt/homebrew/bin/python3.9
3.9.6
:/usr/bin/python3
3.8.15
:/opt/homebrew/bin/python3.8
PEP 508 Information:
System environment variables:
MANPATH
TERM_PROGRAM
SHELL
TERM
HOMEBREW_REPOSITORY
TMPDIR
GOBIN
TERM_PROGRAM_VERSION
ADOPS_PAT
OLDPWD
TERM_SESSION_ID
USER
LDAP_USERNAME
CODEARTIFACT_AUTH_TOKEN
SSH_AUTH_SOCK
HOMEBREW_NO_AUTO_UPDATE
PATH
__CFBundleIdentifier
PWD
JAVA_HOME
LANG
LDAP_PASSWORD
XPC_FLAGS
PS1
XPC_SERVICE_NAME
SHLVL
HOME
SHELL_SESSION_HISTORY
HOMEBREW_PREFIX
LOGNAME
GOPATH
DEV_CLIENT_ID
INFOPATH
HOMEBREW_CELLAR
BITBUCKET_PAT
DEV_CLIENT_SECRET
_
__CF_USER_TEXT_ENCODING
PIP_DISABLE_PIP_VERSION_CHECK
PIP_PYTHON_PATH
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/myusername/.go/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/Users/myusername/stuff
The text was updated successfully, but these errors were encountered: