Merge pull request #304482 from szlend/cargo-llvm-cov-no-dotgit

cargo-llvm-cov: don't use leaveDotGit

authored by Weijia Wang and committed by GitHub 5daabb3a c688818d

+4 -6
+4 -6
pkgs/development/tools/rust/cargo-llvm-cov/default.nix
··· 55 55 inherit owner; 56 56 repo = pname; 57 57 rev = "v${version}"; 58 - sha256 = "sha256-mNpZj8c+IHcW0StFzRPt7wcysADh01eLFcIK6fX/2KQ="; 59 - leaveDotGit = true; 58 + sha256 = "sha256-fZrYmsulKOvgW/WtsYL7r4Cby+m9ShgXozxj1ZQ5ZAY="; 60 59 }; 61 60 62 61 # Upstream doesn't include the lockfile so we need to add it back ··· 75 74 git 76 75 ]; 77 76 77 + # `cargo-llvm-cov` tests rely on `git ls-files. 78 78 preCheck = '' 79 - # `cargo-llvm-cov`'s tests rely on `git ls-files` so the staging area needs 80 - # to not have everything staged as deleted, which is how `leaveDotGit` in 81 - # `fetchFromGitHub` leaves the staging area for reproducibility reasons. 82 - git restore --staged . 79 + git init -b main 80 + git add . 83 81 ''; 84 82 85 83 meta = {