-
-
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
Change pipenv install
to update the lock file first
#1486
Comments
my only concern with this is something shouldn't be added to the lockfile if it can't be installed. |
The simplest alternative that comes to mind would be to leave the current logic alone, and just add the If discrepancies happen frequently enough for users to complain about the extra output from the sync operation, then it may also be feasible to convert Pipfile.lock to a constraints file that gets passed to the install command. |
Sounds like a plan :) |
@kennethreitz Are there any other parameters that might need to be passed to the new |
(Breaking out another substep of #1255)
When a specific package to install is passed to
pipenv install
, the current logical flow is as follows:Pipfile
with the new or revised dependency--skip-lock
was omitted)This creates some opportunities for the environment and the lock file to become inconsistent with each other:
The proposed change to the installation logic would be as follows:
Pipfile
Pipfile
until all the requested packages have been checkedPipfile
with the new or revised dependencyPipfile
with the new pre-release setting (if--pre
is specified)--skip-lock
was omitted, regenerate the lock filedo_init
(just as the command already does for the case where no packages are specified, which means this approach also already handles the--ignore-pipfile
and--skip-lock
options)The text was updated successfully, but these errors were encountered: