Repository navigation
✨ feat(cli): add --skip-env-install flag for offline env reuse - #3792
Merged
gaborbernat merged 2 commits intoFeb 20, 2026
Merged
Conversation
gaborbernat
enabled auto-merge (squash)
February 20, 2026 04:42
gaborbernat
force-pushed
the
feat/3310-skip-env-install
branch
from
February 20, 2026 05:28
c90b4cd to
9eacf68
Compare
gaborbernat
force-pushed
the
feat/3310-skip-env-install
branch
from
February 20, 2026 05:41
9eacf68 to
46d6e96
Compare
eugengi
added a commit
to eugengi/DjangOps
that referenced
this pull request
May 28, 2026
Run tox in offline mode to bypass: - venv creation - dep installation - project installation [Context] The gate workflow (build) provides a prepared tox env. This env is retrievable via a cache key. For (test) to run, build must complete, and if build completes, then we know that a tox env has been provisioned [Note] - Tox already skipped venv creation and installation. This update now makes it explicit - The above context makes running tox in offline mode safe. This needs to be monitored closely for the next few runs [Docs] See tox feature: tox-dev/tox#3792 Signed-off-by: Eugene Mwangi <mwangi.em37@gmail.com>
eugengi
added a commit
to eugengi/DjangOps
that referenced
this pull request
May 28, 2026
Run tox in offline mode to bypass: - venv creation - dep installation - project installation [Context] The gate workflow (build) provides a prepared tox env. This env is retrievable via a cache key. For (test) to run, build must complete, and if build completes, then we know that a tox env has been provisioned [Note] - Tox already skipped venv creation and installation. This update now makes it explicit - The above context makes running tox in offline mode safe. This needs to be monitored closely for the next few runs [Docs] See tox feature: tox-dev/tox#3792 Signed-off-by: Eugene Mwangi <mwangi.em37@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When working offline or in CI environments where dependencies are already installed, users had no way to skip the dependency installation step without also losing package installation control. The existing
--skip-pkg-installflag only skips package installation but still attempts to install dependencies, which fails without network access. This addresses #3310.The new
--skip-env-installflag skips both dependency installation (deps, dependency groups) and package installation in a single opt-in flag. When set,_setup_env()returns early before calling_install_deps()and_install_dependency_groups(), and_setup_with_env()treats it as implying--skip-pkg-installto also skip package building. This makes it straightforward to reuse a previously populated environment without any network calls.The flag is available on all run commands (
run,run-parallel,legacy) alongside the existing--skip-pkg-installflag. Existing behavior is completely unchanged when the flag is not provided.Fixes #3310