-
-
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
What does the lock file actually lock? #954
Comments
The For the "dev -> deploy to production" workflow example, I'll leave the example to one of the maintainer, as there's a thing or two I'm unsure in term of going from "dev mode" to "prod mode" myself. |
Thanks, @vphilippon. I understand the principle of it recording the exact versions; but I hadn't seen any example of how you can actually use that file once created, that is, how do you install those versions from that file? With a bit more digging around, I've found the "pipenv install --ignore-pipfile" option which I think it does the install from the lockfile; but that really isn't obvious. I'll do a PR in the hope of making it a bit clearer. |
Fixes pypa#954. Example Pipfile.lock workflow.
Fixes #954. Example Pipfile.lock workflow.
@rwillmer Unfortunately your change to the documentation was removed by the following commit: 21eab5a#diff-aff83a71607de84151c1cf4e0a893472 Maybe your example should be added again to the documentation. It made this important point much clearer. |
The correct way to install from the lock file (without any input from Pipfile) is actually
I would also like to mention that documentation contributions are very welcomed. |
how does pip lock work. |
I don't understand what the Pipfile.lock file actually does.
I can see that it stores the hashes of the installed versions, and I can see that from that I can create a pinned requirements.txt file to use with pip.
But I don't see what it prevents from happening, if you don't use pip and only use pipenv.
There's mention of how it can be used to deploy to production, but an example would be great.
If some kind soul could explain what the "dev -> deploy to production" workflow is supposed to be here, I'd happily turn it into a Pull Request for the documentation.
P.S. Thanks for this, @kennethreitz , I love the graph and secure options...
The text was updated successfully, but these errors were encountered: