fix: don't use offline in cargo-metadata
This commit is contained in:
1 parent
c2c18aec8e
commit
48e925f9af
1 file changed
+2
-7
@@ -3,7 +3,7 @@ use crate::Result;
|
|||||||
use crate::{config::DioxusConfig, AndroidTools};
|
use crate::{config::DioxusConfig, AndroidTools};
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
use ignore::gitignore::Gitignore;
|
use ignore::gitignore::Gitignore;
|
||||||
use krates::{semver::Version, KrateDetails, LockOptions};
|
use krates::{semver::Version, KrateDetails};
|
||||||
use krates::{Cmd, Krates, NodeId};
|
use krates::{Cmd, Krates, NodeId};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
@@ -34,12 +34,7 @@ impl Workspace {
|
|||||||
return Ok(ws.clone());
|
return Ok(ws.clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut cmd = Cmd::new();
|
let cmd = Cmd::new();
|
||||||
cmd.lock_opts(LockOptions {
|
|
||||||
offline: true,
|
|
||||||
frozen: false,
|
|
||||||
locked: false,
|
|
||||||
});
|
|
||||||
let mut builder = krates::Builder::new();
|
let mut builder = krates::Builder::new();
|
||||||
builder.workspace(true);
|
builder.workspace(true);
|
||||||
let krates = builder
|
let krates = builder
|
||||||
|
|||||||
Reference in new issue
Block a user