Skip to content

Commit

Permalink
allow changing of hydroflow git dependency in template for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Jul 16, 2024
1 parent e05cad2 commit 8ba146e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions template/hydroflow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
chrono = { version = "0.4.20", features = [ "serde" ], default-features = true }
clap = { version = "4.0.29", features = [ "derive" ] }
hydroflow = { git = "https://github.com/hydro-project/hydroflow" }
hydroflow = { git = "{{ hydroflow_git | default: 'https://github.com/hydro-project/hydroflow' }}", branch = "{{ hydroflow_branch | default: 'main' }}" }
serde = { version = "1", features = [ "derive" ] }
chrono = { version = "0.4.20", features = [ "serde" ], default-features = true }
2 changes: 1 addition & 1 deletion template/hydroflow/cargo-generate.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[template]
ignore = [
"Cargo.lock",
]
]
12 changes: 6 additions & 6 deletions template/hydroflow_plus/flow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ edition = "2021"

[dependencies]
# make sure to sync these to `flow_macro`!
hydroflow_plus = { git = "https://github.com/hydro-project/hydroflow.git" }
hydroflow_plus = { git = "{{ hydroflow_git | default: 'https://github.com/hydro-project/hydroflow' }}", branch = "{{ hydroflow_branch | default: 'main' }}" }
hydroflow_plus_cli_integration = { git = "{{ hydroflow_git | default: 'https://github.com/hydro-project/hydroflow' }}", branch = "{{ hydroflow_branch | default: 'main' }}" }
stageleft = { git = "{{ hydroflow_git | default: 'https://github.com/hydro-project/hydroflow' }}", branch = "{{ hydroflow_branch | default: 'main' }}" }
tokio = { version = "1.16", features = [ "full" ] }
stageleft = { git = "https://github.com/hydro-project/hydroflow.git" }
hydroflow_plus_cli_integration = { git = "https://github.com/hydro-project/hydroflow.git" }

# this dependency should NOT be added to `flow_macro`
flow_macro = { path = "../flow_macro" }

[build-dependencies]
stageleft_tool = { git = "https://github.com/hydro-project/hydroflow.git" }
stageleft_tool = { git = "{{ hydroflow_git | default: 'https://github.com/hydro-project/hydroflow' }}", branch = "{{ hydroflow_branch | default: 'main' }}" }

[dev-dependencies]
hydro_deploy = { git = "https://github.com/hydro-project/hydroflow.git" }
hydroflow_plus_cli_integration = { git = "https://github.com/hydro-project/hydroflow.git", features = [ "deploy" ] }
async-ssh2-lite = { version = "0.4.2", features = [ "vendored-openssl" ] }
hydro_deploy = { git = "{{ hydroflow_git | default: 'https://github.com/hydro-project/hydroflow' }}", branch = "{{ hydroflow_branch | default: 'main' }}" }
hydroflow_plus_cli_integration = { git = "{{ hydroflow_git | default: 'https://github.com/hydro-project/hydroflow' }}", branch = "{{ hydroflow_branch | default: 'main' }}" }
9 changes: 5 additions & 4 deletions template/hydroflow_plus/flow_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ default = ["macro"]
macro = []

[dependencies]
hydroflow_plus = { git = "https://github.com/hydro-project/hydroflow.git" }
# make sure to sync these to `flow`!
hydroflow_plus = { git = "{{ hydroflow_git | default: 'https://github.com/hydro-project/hydroflow' }}", branch = "{{ hydroflow_branch | default: 'main' }}" }
hydroflow_plus_cli_integration = { git = "{{ hydroflow_git | default: 'https://github.com/hydro-project/hydroflow' }}", branch = "{{ hydroflow_branch | default: 'main' }}" }
stageleft = { git = "{{ hydroflow_git | default: 'https://github.com/hydro-project/hydroflow' }}", branch = "{{ hydroflow_branch | default: 'main' }}" }
tokio = { version = "1.16", features = [ "full" ] }
stageleft = { git = "https://github.com/hydro-project/hydroflow.git" }
hydroflow_plus_cli_integration = { git = "https://github.com/hydro-project/hydroflow.git" }

[build-dependencies]
stageleft_tool = { git = "https://github.com/hydro-project/hydroflow.git" }
stageleft_tool = { git = "{{ hydroflow_git | default: 'https://github.com/hydro-project/hydroflow' }}", branch = "{{ hydroflow_branch | default: 'main' }}" }

0 comments on commit 8ba146e

Please sign in to comment.