script processids reverted to use package they come from

This commit is contained in:
Drew Tada 2024-02-08 14:44:19 -05:00
parent 3471951ac7
commit 0833489ce7
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -3209,7 +3209,7 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.6.0"
source = "git+https://github.com/uqbar-dao/process_lib.git?rev=509b1ed#509b1ed65041762dc6dfa7dd85811b7783c1997c"
source = "git+https://github.com/uqbar-dao/process_lib.git?rev=e8c2cac#e8c2cac7c4a4ed7ce3b49717ae3fe0ce4ae708d0"
dependencies = [
"anyhow",
"bincode",

View File

@ -7,7 +7,7 @@ edition = "2021"
[dependencies]
anyhow = "1.0"
bincode = "1.3.3"
kinode_process_lib = { git = "https://github.com/uqbar-dao/process_lib.git", rev = "509b1ed" }
kinode_process_lib = { git = "https://github.com/uqbar-dao/process_lib.git", rev = "e8c2cac" }
rand = "0.8"
regex = "1.10.3"
serde = { version = "1.0", features = ["derive"] }

View File

@ -180,7 +180,7 @@ fn handle_run(
};
let wasm_path = format!("{}{}", drive_path, wasm_path);
// build initial caps
let process_id = format!("{}:terminal:sys", rand::random::<u64>()); // all scripts are given random process IDs
let process_id = format!("{}:{}", rand::random::<u64>(), package); // all scripts are given random process IDs
let Ok(parsed_new_process_id) = process_id.parse::<ProcessId>() else {
return Err(anyhow::anyhow!("app store: invalid process id!"));
};