Skip to content
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

Use PIPENV_SKIP_LOCK environment variable #4797

Merged
merged 3 commits into from
Feb 20, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pipenv/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,15 @@ def initialize(self):
if interactive.
"""

self.PIPENV_SKIP_LOCK = False
self.PIPENV_SKIP_LOCK = bool(os.environ.get("PIPENV_SKIP_LOCK", False))
"""If set, Pipenv won't lock dependencies automatically.

This might be desirable if a project has large number of dependencies,
because locking is an inherently slow operation.

Default is to lock dependencies and update ``Pipfile.lock`` on each run.

Usage: `export PIPENV_SKIP_LOCK=true` OR `export PIPENV_SKIP_LOCK=1` to skip automatic locking

NOTE: This only affects the ``install`` and ``uninstall`` commands.
"""
Expand Down