cargo-llvm-cov: don't use leaveDotGit
This commit is contained in:
parent
2fd19c8be2
commit
89708930c4
|
@ -55,8 +55,7 @@ rustPlatform.buildRustPackage {
|
||||||
inherit owner;
|
inherit owner;
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-mNpZj8c+IHcW0StFzRPt7wcysADh01eLFcIK6fX/2KQ=";
|
sha256 = "sha256-fZrYmsulKOvgW/WtsYL7r4Cby+m9ShgXozxj1ZQ5ZAY=";
|
||||||
leaveDotGit = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Upstream doesn't include the lockfile so we need to add it back
|
# Upstream doesn't include the lockfile so we need to add it back
|
||||||
|
@ -75,11 +74,10 @@ rustPlatform.buildRustPackage {
|
||||||
git
|
git
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# `cargo-llvm-cov` tests rely on `git ls-files.
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# `cargo-llvm-cov`'s tests rely on `git ls-files` so the staging area needs
|
git init -b main
|
||||||
# to not have everything staged as deleted, which is how `leaveDotGit` in
|
git add .
|
||||||
# `fetchFromGitHub` leaves the staging area for reproducibility reasons.
|
|
||||||
git restore --staged .
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user