From 19076043f4fc5f6fd77af73931fe55192face853 Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Mon, 18 Nov 2024 15:09:58 +0100 Subject: [PATCH 1/2] run cargo metadata with --offline & --no-deps --- crates/build/re_build_tools/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/build/re_build_tools/src/lib.rs b/crates/build/re_build_tools/src/lib.rs index f4f6050f24f1..1dafdd0b8665 100644 --- a/crates/build/re_build_tools/src/lib.rs +++ b/crates/build/re_build_tools/src/lib.rs @@ -289,7 +289,12 @@ pub fn cargo_metadata() -> anyhow::Result { "Can't get metadata during crate publishing - it would create a Cargo.lock file" ); - Ok(cargo_metadata::MetadataCommand::new().exec()?) + Ok(cargo_metadata::MetadataCommand::new() + .no_deps() + // Make sure this works without a connection, since docs.rs won't have one either. + // See https://github.com/rerun-io/rerun/issues/8165 + .other_options(vec!["--offline".to_owned()]) + .exec()?) } /// Returns a list of all the enabled features of the given package. From 0586fe5216072e6ce5ba4e52b4af1d15ff65c58d Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Mon, 18 Nov 2024 17:53:26 +0100 Subject: [PATCH 2/2] Update crates/build/re_build_tools/src/lib.rs --- crates/build/re_build_tools/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/build/re_build_tools/src/lib.rs b/crates/build/re_build_tools/src/lib.rs index 1dafdd0b8665..d66292055554 100644 --- a/crates/build/re_build_tools/src/lib.rs +++ b/crates/build/re_build_tools/src/lib.rs @@ -293,7 +293,7 @@ pub fn cargo_metadata() -> anyhow::Result { .no_deps() // Make sure this works without a connection, since docs.rs won't have one either. // See https://github.com/rerun-io/rerun/issues/8165 - .other_options(vec!["--offline".to_owned()]) + .other_options(vec!["--frozen".to_owned()]) .exec()?) }