--keep-outdated while switching dependency git location results in conflicting Pipfile and lock #5149
Labels
--keep-outdated/--selective-upgrade
Type: Possible Bug
This issue describes a possible bug in pipenv.
Issue description
Switching a dependency from a fork (eg
https://github.com/nicholasserra/twine
) to the source (eghttps://github.com/pypa/twine
) with the--keep-outdated
flag results in conflicting Pipfile and Pipfile.lockExpected result
Expected both the Pipfile and Pipfile.lock to reference
https://github.com/pypa/twine
Actual result
Pipfile references the new source given (
https://github.com/pypa/twine
) but the Pipfile.lock still references the old fork url and commit (https://github.com/nicholasserra/twine
).Steps to replicate
pipenv install -e git+https://github.com/nicholasserra/twine.git@668f4db44d2965d9009308d96e13776069d050db#egg=twine
pipenv install -e git+https://github.com/pypa/twine.git@8f5e5d6d42d582ef3ea6ef07da277e0cabd22fd2#egg=twine --keep-outdated
$ pipenv --support
Pipenv version:
'2022.6.7'
Pipenv location:
'/Users/nick/Code/pipenv-bug/venv/lib/python3.8/site-packages/pipenv'
Python location:
'/Users/nick/Code/pipenv-bug/venv/bin/python'
Python installations found:
3.8.2
:/Users/nick/Code/pipenv-bug/venv/bin/python3
3.8.2
:/Users/nick/Code/pipenv-bug/venv/bin/python
3.8.2
:/Users/nick/Code/pipenv-bug/venv/bin/python3
3.8.2
:/Users/nick/Code/pipenv-bug/venv/bin/python
3.8.2
:/Users/nick/.pyenv/versions/3.8.2/bin/python3
3.7.3
:/usr/bin/python3
3.7.0
:/Users/nick/.pyenv/versions/3.7.0/bin/python3
3.6.1
:/Users/nick/.pyenv/versions/3.6.1/bin/python3
3.4.3
:/usr/local/bin/python3
3.4.3
:/usr/local/bin/python3.4m
3.4.3
:/usr/local/bin/python3.4
2.7.16
:/usr/bin/python
2.7.16
:/usr/bin/python2
2.7.16
:/usr/bin/python2.7
2.7.13
:/usr/local/bin/python
2.7.13
:/usr/local/bin/python2
2.7.13
:/usr/local/bin/python2.7
2.7.13
:/Users/nick/.pyenv/versions/2.7.13/bin/python
2.7.10
:/Users/nick/.pyenv/versions/2.7.10/bin/python
PEP 508 Information:
System environment variables:
MANPATH
rvm_bin_path
TERM_PROGRAM
NVM_CD_FLAGS
GEM_HOME
TERM
SHELL
IRBRC
TMPDIR
NVM_PATH
TERM_PROGRAM_VERSION
OLDPWD
MY_RUBY_HOME
TERM_SESSION_ID
NVM_DIR
USER
_system_type
rvm_path
SSH_AUTH_SOCK
__CF_USER_TEXT_ENCODING
VIRTUAL_ENV
rvm_prefix
PATH
NVM_NODEJS_ORG_MIRROR
PWD
LANG
ITERM_PROFILE
_system_arch
XPC_FLAGS
PS1
PYTHONDONTWRITEBYTECODE
_system_version
XPC_SERVICE_NAME
rvm_version
PYENV_SHELL
SHLVL
HOME
COLORFGBG
LC_TERMINAL_VERSION
ITERM_SESSION_ID
LOGNAME
GEM_PATH
GOPATH
NVM_BIN
NVM_IOJS_ORG_MIRROR
LC_TERMINAL
RUBY_VERSION
_system_name
COLORTERM
_
PIP_SHIMS_BASE_MODULE
PIP_DISABLE_PIP_VERSION_CHECK
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/nick/Code/pipenv-bug/venv/bin:/Users/nick/.pyenv/shims:/Users/nick/.nvm/versions/node/v10.15.1/bin:/Applications/Postgres.app/Contents/Versions/9.4/bin:/Users/nick/.rvm/gems/ruby-2.3.0/bin:/Users/nick/.rvm/gems/ruby-2.3.0@global/bin:/Users/nick/.rvm/rubies/ruby-2.3.0/bin:/usr/local/heroku/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/usr/local/share/dotnet:/Applications/Wireshark.app/Contents/MacOS:/usr/local/git/bin:/Users/nick/.rvm/bin:/Users/nick/.rvm/bin:/Users/nick/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/Users/nick/Code/pipenv-bug
VIRTUAL_ENV
:/Users/nick/Code/pipenv-bug/venv
Contents of
Pipfile
('/Users/nick/Code/pipenv-bug/Pipfile'):Contents of
Pipfile.lock
('/Users/nick/Code/pipenv-bug/Pipfile.lock'):The text was updated successfully, but these errors were encountered: