From f6ce020d2bc6726d51e5a77a35b9e8ae4f772b74 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Wed, 14 Sep 2022 11:51:24 +0100 Subject: [PATCH] Do not fail builds if fake HOME is populated --- default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/default.nix b/default.nix index 3db5fa5..f1de464 100644 --- a/default.nix +++ b/default.nix @@ -153,14 +153,15 @@ let export HOME=$(mktemp -d) ''; postInstall = '' - # If gccEmacs or anything would write in $HOME, fail the build. + # If gccEmacs or anything would write in $HOME, warn since this is sketchy. if [[ -z "$(find $HOME -maxdepth 0 -empty)" ]]; then - printf "${fmt.red}${fmt.bold}ERROR:${fmt.reset} " + printf "\n\n\n" + printf "${fmt.red}${fmt.bold}WARNING:${fmt.reset} " printf "${fmt.red}doom-emacs build resulted in files being written in "'$HOME'" of the build sandbox.\n" printf "Contents of "'$HOME'":\n" find $HOME printf ${fmt.reset} - exit 33 + printf "\n\n\n" fi ''; });