~ruther/guix-config

e72054ca7a3fbccd1a28d462e458ad1ada7b58b0 — Rutherther 9 days ago fbe79d4
fix: remove channels-lock.scm when time-machine fails
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)