Browse Source

Use `which` to find `dora-runtime` within `PATH`

tags/v0.0.0-test-pr-131
haixuanTao 3 years ago
parent
commit
b8acb644a1
3 changed files with 6 additions and 4 deletions
  1. +4
    -3
      Cargo.lock
  2. +1
    -0
      binaries/coordinator/Cargo.toml
  3. +1
    -1
      binaries/coordinator/src/run/mod.rs

+ 4
- 3
Cargo.lock View File

@@ -912,6 +912,7 @@ dependencies = [
"tracing",
"tracing-subscriber",
"uuid 0.8.2",
"which",
"zenoh",
]

@@ -4422,13 +4423,13 @@ dependencies = [

[[package]]
name = "which"
version = "4.2.5"
version = "4.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c4fb54e6113b6a8772ee41c3404fb0301ac79604489467e0a9ce1f3e97c24ae"
checksum = "1c831fbbee9e129a8cf93e7747a82da9d95ba8e16621cae60ec2cdc849bacb7b"
dependencies = [
"either",
"lazy_static",
"libc",
"once_cell",
]

[[package]]


+ 1
- 0
binaries/coordinator/Cargo.toml View File

@@ -28,3 +28,4 @@ futures-concurrency = "5.0.1"
zenoh = { git = "https://github.com/eclipse-zenoh/zenoh.git", rev = "79a136e4fd90b11ff5d775ced981af53c4f1071b" }
serde_json = "1.0.86"
dora-download = { path = "../../libraries/extensions/download" }
which = "4.3.0"

+ 1
- 1
binaries/coordinator/src/run/mod.rs View File

@@ -45,7 +45,7 @@ pub async fn spawn_dataflow(runtime: &Path, dataflow_path: &Path) -> eyre::Resul
.iter()
.any(|n| matches!(n.kind, CoreNodeKind::Runtime(_)))
{
match runtime.canonicalize() {
match which::which(runtime.as_os_str()) {
Ok(path) => {
runtime = path;
}


Loading…
Cancel
Save