From d59f47ddc07250db78db171beab570bce9b483db Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Fri, 21 Jul 2023 20:49:15 +0200 Subject: [PATCH] Use cargo instead of git in template `Cargo.toml` By using cargo instead of git, we make compilation not have to git clone dora project. --- binaries/cli/src/template/rust/mod.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/binaries/cli/src/template/rust/mod.rs b/binaries/cli/src/template/rust/mod.rs index 4b5f5e62..d4665e52 100644 --- a/binaries/cli/src/template/rust/mod.rs +++ b/binaries/cli/src/template/rust/mod.rs @@ -93,9 +93,7 @@ fn create_operator( let dep = if use_path_deps { r#"dora-operator-api = { path = "../../apis/rust/operator" }"#.to_string() } else { - format!( - r#"dora-operator-api = {{ git = "https://github.com/dora-rs/dora.git", tag = "v{VERSION}" }}"# - ) + format!(r#"dora-operator-api = "{VERSION}""#) }; let cargo_toml = CARGO_TOML .replace("___name___", &name) @@ -143,9 +141,7 @@ fn create_custom_node( let dep = if use_path_deps { r#"dora-node-api = { path = "../../apis/rust/node" }"#.to_string() } else { - format!( - r#"dora-node-api = {{ git = "https://github.com/dora-rs/dora.git", tag = "v{VERSION}" }}"# - ) + format!(r#"dora-node-api = "{VERSION}""#) }; let cargo_toml = CARGO_TOML .replace("___name___", &name)