fix(workspace): clear strict lint and test debt

This commit is contained in:
slhx agent
2026-07-13 08:59:48 +02:00
parent d0e7022c86
commit 65895d8b83
10 changed files with 49 additions and 26 deletions
+10 -1
View File
@@ -982,7 +982,9 @@ fn check_fixture(fixture: &Fixture) -> std::process::Output {
.arg("--quiet")
.arg("--manifest-path")
.arg(fixture.path.join("Cargo.toml"))
.env("CARGO_TARGET_DIR", fixture.path.join("target"))
// Cargo serializes access to a shared target directory, so all fixtures reuse
// the same compiled hemx dependency graph instead of rebuilding it per test.
.env("CARGO_TARGET_DIR", fixture_target_dir())
.output()
.expect("cargo check fixture runs")
}
@@ -994,6 +996,13 @@ fn repo_path(crate_name: &str) -> PathBuf {
.join(crate_name)
}
fn fixture_target_dir() -> PathBuf {
Path::new(env!("CARGO_MANIFEST_DIR"))
.parent()
.expect("crate has workspace parent")
.join("target/compile-fixtures")
}
struct Fixture {
path: PathBuf,
}