Skip to content

Commit 5224ca0

Browse files
committed
Correct $HOME during llvmcov
1 parent 9539890 commit 5224ca0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

flake.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,14 @@
297297
(nightlyCraneLibFor p).cargoLlvmCov (coverageArgs
298298
// {
299299
cargoArtifacts = nightlyCargoArtifactsFor p;
300+
preConfigurePhases = ["tempHome"];
301+
tempHome = ''
302+
# Default home at this point is /homeless-shelter, which doesn't exist and so breaks things like
303+
# the Mongo downloader
304+
echo "HOME was ''${HOME}"
305+
export HOME=$(mktemp -d fake-homeXXXX --tmpdir)
306+
echo "HOME is now ''${HOME}"
307+
'';
300308
cargoExtraArgs = builtins.concatStringsSep " " [
301309
"--all"
302310
"--locked"

0 commit comments

Comments
 (0)