Skip to content

Commit

Permalink
Merge branch 'main' into allow-module-without-version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijsreyn authored Dec 12, 2024
2 parents 4b0e9d4 + 7ee6e7a commit bd42eaf
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 41 deletions.
127 changes: 105 additions & 22 deletions dsc/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions dsc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dsc"
version = "3.1.0-preview.1"
version = "3.0.0-preview.12"
edition = "2021"

[profile.release]
Expand All @@ -17,16 +17,15 @@ crossterm = { version = "0.28" }
ctrlc = { version = "3.4" }
dsc_lib = { path = "../dsc_lib" }
indicatif = { version = "0.17" }
jsonschema = { version = "0.23", default-features = false }
jsonschema = { version = "0.26", default-features = false }
path-absolutize = { version = "3.1" }
# reqwest = { version = "0.12.8", features = ["native-tls"], default-features = false }
schemars = { version = "0.8" }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
serde_yaml = { version = "0.9" }
syntect = { version = "5.0", features = ["default-fancy"], default-features = false }
sysinfo = { version = "0.32" }
thiserror = "1.0"
tracing = { version = "0.1.37" }
sysinfo = { version = "0.33" }
thiserror = "2.0"
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3", features = ["ansi", "env-filter", "json"] }
tracing-indicatif = { version = "0.3" }
4 changes: 2 additions & 2 deletions dsc/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fn ctrlc_handler() {
warn!("Ctrl-C received");

// get process tree for current process and terminate all processes
let sys = System::new_with_specifics(RefreshKind::new().with_processes(ProcessRefreshKind::new()));
let sys = System::new_with_specifics(RefreshKind::nothing().with_processes(ProcessRefreshKind::everything()));
info!("Found {} processes", sys.processes().len());
let Ok(current_pid) = get_current_pid() else {
error!("Could not get current process id");
Expand Down Expand Up @@ -145,7 +145,7 @@ Visit https://aka.ms/dscv3-docs for more information on how to use DSC.exe.
Press any key to close this window
";
let sys = System::new_with_specifics(RefreshKind::new().with_processes(ProcessRefreshKind::new()));
let sys = System::new_with_specifics(RefreshKind::nothing().with_processes(ProcessRefreshKind::everything()));
// get current process
let Ok(current_pid) = get_current_pid() else {
return;
Expand Down
6 changes: 1 addition & 5 deletions dsc/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,7 @@ pub fn validate_json(source: &str, schema: &Value, json: &Value) -> Result<(), D
};

if let Err(err) = compiled_schema.validate(json) {
let mut error = format!("'{source}' failed validation: ");
for e in err {
error.push_str(&format!("\n{e} "));
}
return Err(DscError::Validation(error));
return Err(DscError::Validation(format!("'{source}' failed validation: {err}")));
};

Ok(())
Expand Down
12 changes: 6 additions & 6 deletions runcommandonset/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bd42eaf

Please sign in to comment.