1 files changed, 3 insertions(+), 1 deletions(-)
M Makefile
M Makefile => Makefile +3 -1
@@ 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)