mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-10-30 08:30:46 +08:00
Several commands had no route or returned stubs, so e2e tests silently got null or empty data. A missing route now fails loudly, the profile loads on first use so onboarding works, and node status is polled over HTTP. A parity test keeps the routes from drifting from the Tauri handlers again; it also caught revisions_by_patch being registered twice.
14 lines
409 B
Rust
14 lines
409 B
Rust
use std::env;
|
|
use std::process::Command;
|
|
|
|
fn main() {
|
|
let head = env::var("GIT_HEAD").unwrap_or_else(|_| {
|
|
Command::new("git")
|
|
.args(["rev-parse", "--short", "HEAD"])
|
|
.output()
|
|
.map(|output| String::from_utf8(output.stdout).expect("output from Git is UTF-8"))
|
|
.unwrap_or("unknown".into())
|
|
});
|
|
println!("cargo::rustc-env=GIT_HEAD={head}");
|
|
}
|