fix(workspace): clear strict lint and test debt
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user