-
-
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
Install uses Pipfile.lock even when --skip-lock
is set
#3266
Comments
Hey @owenstranathan, We did a quick check and this issue looks very darn similar to
This could be a coincidence, but if any of these issues solves your problem then I did a good job 😄 If not, the maintainers will get to this issue shortly. Cheers, |
Can you confirm whether this is still true against the current version of master? |
@techalchemy sorry for the slow reply, was traveling. Confirmed this is still true on master.
|
No worries, there was actually a regression around |
Issue description
pipenv install --skip-lock
will read a Pipfile.lock if it exists which is unintuitive.For example
Expected result
Pipenv ignores
Pipfile.lock
altogether and just installs dependencies specified in thePipefile
Actual result
my actual use case output
You see it claims to be installing from Pipfile however it's reaching for hashes it shouldn't
know about. The reason is this line here
pipenv/pipenv/core.py
Line 780 in 9a6443a
the method being called there will load the lockfile if it exists, this is probably ok, except
when
--skip-lock
is explicitly true this unintuitiveSteps to replicate
See above.
or
contrived example
You see there is a difference in number of dependencies
$ pipenv --support
Pipenv version:
'2018.11.14'
Pipenv location:
'/home/owen/.local/lib/python3.7/site-packages/pipenv'
Python location:
'/usr/bin/python3.7'
Python installations found:
3.7.1
:/usr/bin/python3.7
3.7.1
:/usr/bin/python3.7m
3.7.0
:/mnt/c/Python37/python.exe
3.7.0
:/mnt/c/Python37/pythonw.exe
3.6.7
:/usr/bin/python3.6
3.6.7
:/usr/bin/python3.6m
3.5.2
:/usr/bin/python3
3.5.2
:/usr/bin/python3.5m
2.7.12
:/usr/bin/python
PEP 508 Information:
System environment variables:
SSH_AGENT_PID
TERM
SHELL
DOCKER_HOST
BYOBU_CONFIG_DIR
BYOBU_TTY
ZSH
WIN_HOME
CLOUDSDK_CONTAINER_USE_V1_API_CLIENT
BYOBU_READLINK
USER
NAME
BYOBU_RUN_DIR
BYOBU_DISTRO
HOSTTYPE
SSH_AUTH_SOCK
BYOBU_DATE
PAGER
VIRTUAL_ENV_DISABLE_PROMPT
TMUX
LSCOLORS
BYOBU_BACKEND
BYOBU_SED
PATH
WSL
BYOBU_DARK
PWD
BYOBU_ULIMIT
EDITOR
LANG
TMUX_PANE
BYOBU_WINDOW_NAME
BYOBU_CHARMAP
BYOBU_PYTHON
SHLVL
HOME
BYOBU_LIGHT
LESS
LOGNAME
BYOBU_PAGER
LC_CTYPE
BYOBU_ACCENT
GOPATH
BYOBU_PREFIX
BYOBU_HIGHLIGHT
BYOBU_TIME
OLDPWD
_
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/opt/avr-gcc@7/bin:/usr/local/go/bin:/home/owen/.local/bin:/usr/local/sbin:/home/owen/bin:/usr/local/bin:/usr/local/opt/avr-gcc@7/bin:/usr/local/go/bin:/home/owen/.local/bin:/usr/local/sbin:/home/owen/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Python37/Scripts:/mnt/c/Python37:/mnt/c/Program Files (x86)/Intel/iCLS Client:/mnt/c/Program Files/Intel/iCLS Client:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/dotnet:/mnt/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files (x86)/GtkSharp/2.12/bin:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files (x86)/ChucK/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Program Files/Intel/WiFi/bin:/mnt/c/Program Files/Common Files/Intel/WirelessCommon:/mnt/c/Go/bin:/mnt/c/Program Files (x86)/Atmel/Flip 3.4.7/bin:/mnt/c/Users/Owen/go/bin:/home/owen/.rvm/bin:/home/owen/.rvm/bin
SHELL
:/bin/bash
EDITOR
:vim
LANG
:en_US.UTF-8
PWD
:/home/owen/projects/test
Contents of
Pipfile
('/mnt/c/Users/Owen/projects/test/Pipfile'):Contents of
Pipfile.lock
('/mnt/c/Users/Owen/projects/test/Pipfile.lock'):The text was updated successfully, but these errors were encountered: