File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,33 @@ for host in $HOSTS; do
130130 esac
131131done
132132
133+ # ###############
134+ # Check that we can connect to the guix-daemon
135+ # ###############
136+
137+ cat << EOF
138+ Checking that we can connect to the guix-daemon...
139+
140+ Hint: If this hangs, you may want to try turning your guix-daemon off and on
141+ again.
142+
143+ EOF
144+ if ! guix gc --list-failures > /dev/null; then
145+ cat << EOF
146+
147+ ERR: Failed to connect to the guix-daemon, please ensure that one is running and
148+ reachable.
149+ EOF
150+ exit 1
151+ fi
152+
153+ # Developer note: we could use `guix repl` for this check and run:
154+ #
155+ # (import (guix store)) (close-connection (open-connection))
156+ #
157+ # However, the internal API is likely to change more than the CLI invocation
158+
159+
133160# ########
134161# SETUP #
135162# ########
You can’t perform that action at this time.
0 commit comments