Integrate the ignored-workspace corpus into verification

Give the Git Sentry launch shape one Rust owner, update the physical corpus to supply every authority, and make the default repository gate distinguish unavailable physical prerequisites from corpus failures.
This commit is contained in:
ms2k 2026-07-19 02:39:45 +09:00
commit a0055f67f1

View file

@ -1,8 +1,7 @@
use std::env;
use std::io::{self, Read, Write};
use std::path::PathBuf;
use lazaret_ignored_workspace::{GitSentry, GitSentryConfiguration};
use lazaret_ignored_workspace::{GitSentry, GitSentryLaunch};
fn main() {
if let Err(error) = run() {
@ -12,18 +11,8 @@ fn main() {
}
fn run() -> io::Result<()> {
let arguments = env::args_os().skip(1).collect::<Vec<_>>();
if arguments.len() != 4 {
return Err(io::Error::other(
"usage: lazaret-git-sentry MOUNTED_WORKSPACE HOST_GIT_COMMON_DIRECTORY TRANSIENT_HOOKS TRANSIENT_CONFIG",
));
}
let sentry = GitSentry::install(&GitSentryConfiguration {
mounted_workspace: PathBuf::from(&arguments[0]),
host_git_common_directory: PathBuf::from(&arguments[1]),
transient_hooks: PathBuf::from(&arguments[2]),
transient_config: PathBuf::from(&arguments[3]),
})?;
let launch = GitSentryLaunch::parse(env::args_os().skip(1).collect())?;
let sentry = GitSentry::install(&launch.configuration())?;
println!("ready");
io::stdout().flush()?;
io::stdin().read_to_end(&mut Vec::new())?;