Skip to content

Commit

Permalink
remove --offline flag
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarTawfik committed Nov 3, 2023
1 parent fa600c9 commit d63a048
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/infra/utils/src/cargo/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,6 @@ impl CargoWorkspace {
pub fn get_command(subcommand: impl AsRef<str>) -> Result<Command> {
let mut command = Command::new("cargo")
.arg(subcommand.as_ref())
.flag(
// Cargo will periodically try to update its manifest/local cache from internet before running these
// commands. This periodically means 1min+ interruptions for local development, and even blocking
// development completely if you are working offline. Using '--offline' prevents that, making sure
// that the command always reuses the dependencies already downloaded by 'infra setup'.
"--offline",
)
.flag("--all")
.flag("--all-targets")
.flag("--all-features");
Expand Down

0 comments on commit d63a048

Please sign in to comment.