Skip to content

Commit 8f8b96f

Browse files
committed
guix: Update hint messages to mention guix-clean
1 parent 44f6d4f commit 8f8b96f

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

contrib/guix/guix-build

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ ERR: Build directories for this commit already exist for the following platform
103103
104104
Aborting...
105105
106+
Hint: To blow everything away, you may want to use:
107+
108+
$ ./contrib/guix/guix-clean
109+
110+
Specifically, this will remove all files without an entry in the index,
111+
excluding the SDK directory, the depends download cache, the depends built
112+
packages cache, the garbage collector roots for Guix environments, and the
113+
output directory.
106114
EOF
107115
for host in $hosts_distsrc_exists; do
108116
echo " ${host} '$(distsrc_for_host "$host")'"
@@ -277,15 +285,16 @@ outdir_for_host() {
277285
int_trap() {
278286
cat << EOF
279287
** INT received while building ${1}, you may want to clean up the relevant
280-
output, deploy, and distsrc-* directories before rebuilding
288+
work directories (e.g. distsrc-*) before rebuilding
281289
282290
Hint: To blow everything away, you may want to use:
283291
284-
$ git clean -xdff --exclude='/depends/SDKs/*'
292+
$ ./contrib/guix/guix-clean
285293
286294
Specifically, this will remove all files without an entry in the index,
287-
excluding the SDK directory. Practically speaking, this means that all ignored
288-
and untracked files and directories will be wiped, allowing you to start anew.
295+
excluding the SDK directory, the depends download cache, the depends built
296+
packages cache, the garbage collector roots for Guix environments, and the
297+
output directory.
289298
EOF
290299
}
291300

0 commit comments

Comments
 (0)