pipenv lock
does not list all hashes in Pipfile.lock when using private/custom index
#6249
Labels
Category: Private PyPIs 😎
Problem relates to private PyPI usage.
Contributor Candidate
The issue has been identified/triaged and contributions are welcomed/encouraged.
PR: awaiting-review
The PR related to this issue is awaiting review by a maintainer.
Type: Regression
This issue is a regression of a previous behavior.
Issue description
pipenv lock
does not list all hashes for a dependency version when we use internal pypi mirror (Artifactory).I did some debugging that ultimately led to to find that if we remove @cached_property from
pipenv/pipenv/utils/resolver.py
Lines 329 to 336 in 472b118
Expected result
Pipfile.lock should list all hashes (os/arch) for a specific dependency.
Actual result
Pipfile.lock only list dependencies hash of those that match current os/architecture
Steps to replicate
pipenv lock
$ pipenv --support
Pipenv version:
'2024.0.2'
Pipenv location:
'/Users/flavio/dev/github.com/FlavioAmurrioCS/pipenv/pipenv'
Python location:
'/Users/flavio/.virtualenvs/pipenv-KZWbNTkA/bin/python'
OS Name:
'posix'
User pip version:
'24.0'
user Python installations found:
PEP 508 Information:
System environment variables:
SHELL
USER_ZDOTDIR
ITERM_PROFILE
TWILIO_ACCOUNT_SID
COLORTERM
XPC_FLAGS
HOMEBREW_HOME
HISTCONTROL
TERM_PROGRAM_VERSION
PIPENV_ACTIVE
HISTSIZE
TERM_FEATURES
__CFBundleIdentifier
THEME_THEME
SSH_AUTH_SOCK
MallocNanoZone
TWINE_PASSWORD
TERM_SESSION_ID
HOMEBREW_PREFIX
PIPX_BIN_DIR
PWD
LOGNAME
LaunchInstanceID
VSCODE_GIT_ASKPASS_NODE
TOOL_INSTALLER_PACKAGE_DIR
HATCH_ENV_TYPE_VIRTUAL_PATH
GITHUB_FOLLOW
VSCODE_INJECTION
COMMAND_MODE
APPLICATION_DIR
ITERM_SESSION_ID
PIP_PYTHON_PATH
HOME
LANG
SECURITYSESSIONID
VIRTUAL_ENV
TMPDIR
GIT_ASKPASS
LC_TERMINAL
POETRY_VIRTUALENVS_IN_PROJECT
VIRTUALENVWRAPPER_PYTHON
ZERO_TIER_TOKEN
TOOL_INSTALLER_BIN_DIR
BASH_SILENCE_DEPRECATION_WARNING
PIPENV_IGNORE_VIRTUALENVS
TOOL_INSTALLER_PIPX_HOME
VSCODE_GIT_ASKPASS_EXTRA_ARGS
WORKON_HOME
NPM_CONFIG_PREFIX
TERM
VSCODE_ENV_REPLACE
VSCODE_NONCE
ZDOTDIR
USER
PIP_DISABLE_PIP_VERSION_CHECK
VSCODE_GIT_IPC_HANDLE
COLORFGBG
RUNTOOL_DEV
PIPX_HOME
LC_TERMINAL_VERSION
TWILIO_PHONE_NUMBER
SHLVL
VIRTUAL_ENV_PROMPT
PYTHONDONTWRITEBYTECODE
XPC_SERVICE_NAME
TERMINFO_DIRS
PS1
NODE_PATH
VSCODE_GIT_ASKPASS_MAIN
TWILIO_AUTH_TOKEN
PATH
HOMEBREW_CASK_OPTS
HISTFILESIZE
ORIGINAL_XDG_CURRENT_DESKTOP
FZF_DEFAULT_OPTS
TOOL_INSTALLER_GIT_PROJECT_DIR
VSCODE_ENV_PREPEND
TOOL_INSTALLER_OPT_DIR
CODEFLASH_API_KEY
OLDPWD
__CF_USER_TEXT_ENCODING
TERM_PROGRAM
_
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_ACTIVE
:1
PIPENV_IGNORE_VIRTUALENVS
:1
Debug–specific environment variables:
PATH
:/Users/flavio/.virtualenvs/pipenv-KZWbNTkA/bin:/Users/flavio/.node_global/lib/node_modules/.bin:/Users/flavio/.node_global/bin:/Users/flavio/opt/runtool/bin:/Users/flavio/.local/bin:/Users/flavio/Applications/brew/bin:/Users/flavio/.node_global/lib/node_modules/.bin:/Users/flavio/.node_global/bin:/Users/flavio/opt/runtool/bin:/Users/flavio/.local/bin:/Users/flavio/Applications/brew/bin:/Users/flavio/.vscode/extensions/ms-python.python-2024.14.1-darwin-arm64/python_files/deactivate/zsh:/Users/flavio/.virtualenvs/pipenv-KZWbNTkA/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/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:/Users/flavio/.vscode/extensions/ms-python.python-2024.14.1-darwin-arm64/python_files/deactivate/zsh:/Users/flavio/.virtualenvs/pipenv-KZWbNTkA/bin:/Users/flavio/.node_global/lib/node_modules/.bin:/Users/flavio/.node_global/bin:/Users/flavio/opt/runtool/bin:/Users/flavio/.local/bin:/Users/flavio/Applications/brew/bin:/Users/flavio/Applications/iTerm.app/Contents/Resources/utilities
SHELL
:/bin/zsh
LANG
:en_US.UTF-8
PWD
:/Users/flavio/dev/github.com/FlavioAmurrioCS/pipenv/bug_small
VIRTUAL_ENV
:/Users/flavio/.virtualenvs/pipenv-KZWbNTkA
Contents of
Pipfile
('/Users/flavio/dev/github.com/FlavioAmurrioCS/pipenv/bug_small/Pipfile'):Contents of
Pipfile.lock
('/Users/flavio/dev/github.com/FlavioAmurrioCS/pipenv/bug_small/Pipfile.lock'):The text was updated successfully, but these errors were encountered: