diff --git a/package.nix b/package.nix index d6334c5..5a3c392 100644 --- a/package.nix +++ b/package.nix @@ -39,7 +39,8 @@ rustPlatform.buildRustPackage { preCheck = initNix; postCheck = '' cargo fmt --check - cargo clippy -- -D warnings + # --tests or --all-targets include tests for linting + cargo clippy --all-targets -- -D warnings ''; postInstall = '' wrapProgram $out/bin/nixpkgs-check-by-name \ diff --git a/src/main.rs b/src/main.rs index dcc9cb9..9a017f3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -208,7 +208,7 @@ mod tests { let temp_nixpkgs = tempdir()?; let path = temp_nixpkgs.path(); - if is_case_insensitive_fs(&path)? { + if is_case_insensitive_fs(path)? { eprintln!("We're on a case-insensitive filesystem, skipping case-sensitivity test"); return Ok(()); } @@ -223,7 +223,7 @@ mod tests { test_nixpkgs( "case_sensitive", - &path, + path, "pkgs/by-name/fo: Duplicate case-sensitive package directories \"foO\" and \"foo\".\nThis PR introduces the problems listed above. Please fix them before merging, otherwise the base branch would break.\n", )?;