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 inherit owner; 56 repo = pname; 57 rev = "v${version}"; 58 - sha256 = "sha256-mNpZj8c+IHcW0StFzRPt7wcysADh01eLFcIK6fX/2KQ="; 59 - leaveDotGit = true; 60 }; 61 62 # Upstream doesn't include the lockfile so we need to add it back ··· 75 git 76 ]; 77 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 . 83 ''; 84 85 meta = {
··· 55 inherit owner; 56 repo = pname; 57 rev = "v${version}"; 58 + sha256 = "sha256-fZrYmsulKOvgW/WtsYL7r4Cby+m9ShgXozxj1ZQ5ZAY="; 59 }; 60 61 # Upstream doesn't include the lockfile so we need to add it back ··· 74 git 75 ]; 76 77 + # `cargo-llvm-cov` tests rely on `git ls-files. 78 preCheck = '' 79 + git init -b main 80 + git add . 81 ''; 82 83 meta = {