From e72054ca7a3fbccd1a28d462e458ad1ada7b58b0 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 12 Sep 2026 18:55:21 +0200 Subject: [PATCH] fix: remove channels-lock.scm when time-machine fails --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1c4565c9d917af9ee23edc565ec933d4dc577020..8473b9517cecec6f44a83994ade44eb22d9c27d8 100644 --- a/Makefile +++ b/Makefile @@ -51,4 +51,6 @@ system-repl: channels-lock.scm $(GUIX) repl -L modules -i ./repl-init.scm $(EXTRA_ARGS) channels-lock.scm: channels.scm - guix time-machine -C channels.scm $(EXTRA_TIMEMACHINE_ARGS) -- describe -f channels $(EXTRA_ARGS) > channels-lock.scm + guix time-machine -C channels.scm $(EXTRA_TIMEMACHINE_ARGS) -- \ + describe -f channels $(EXTRA_ARGS) > channels-lock.scm \ + || (rm channels-lock.scm && exit 1)