-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add --offline flag to skip network access during up #316
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
3440d0a
3af9c2d
9f976b4
dc13b02
48f958a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -214,6 +214,7 @@ def install_and_verify_dependencies( | |
| service: Service, | ||
| force_update_dependencies: bool = False, | ||
| modes: list[str] | None = None, | ||
| offline: bool = False, | ||
| ) -> set[InstalledRemoteDependency]: | ||
| """ | ||
| Install and verify dependencies for a service | ||
|
|
@@ -235,6 +236,17 @@ def install_and_verify_dependencies( | |
| if dependency_key in mode_dependencies | ||
| ] | ||
|
|
||
| if offline: | ||
| are_dependencies_valid = verify_local_dependencies(matching_dependencies) | ||
| if not are_dependencies_valid: | ||
| raise DependencyError( | ||
| repo_name="", | ||
| repo_link="", | ||
| branch="", | ||
| stderr="Cannot use --offline: some dependencies are not cached locally. Run 'devservices up' without --offline first to cache dependencies", | ||
| ) | ||
| return get_installed_remote_dependencies(matching_dependencies) | ||
|
Comment on lines
+239
to
+248
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixUpdate the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews.
sentry[bot] marked this conversation as resolved.
sentry[bot] marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Offline validation misses nested dependencies, yields confusing errorMedium Severity In offline mode, Additional Locations (1)Reviewed by Cursor Bugbot for commit 9f976b4. Configure here. |
||
|
|
||
| if force_update_dependencies: | ||
| remote_dependencies = install_dependencies(matching_dependencies) | ||
| else: | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.