Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion load-quicklisp-fix.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,35 @@
(lambda (condition)
(uiop:print-condition-backtrace condition)
(uiop:quit 1))))
(let ((fix-filename (merge-pathnames
(let ((debug (equal (uiop:getenv "RUNNER_DEBUG")
"1"))
(fix-filename (merge-pathnames
(make-pathname :directory '(:relative ".quicklisp-client-fix")
:name "quicklisp-fix"
:type "lisp")
(user-homedir-pathname))))
(let ((quicklisp-found #+quicklisp t
#-quicklisp nil))
(when debug
(format *error-output*
"Quicklisp found: ~A~%"
quicklisp-found))
(cond
((not quicklisp-found)
(when debug
(format *error-output*
"Quicklisp is not available."))
(warn "Quicklisp is not available, skipping fix loading.~%"))
((probe-file fix-filename)
(handler-bind ((warning #'muffle-warning))
(when debug
(format *error-output*
"Loading file ~A.~%"
fix-filename))
(load fix-filename)))
(t
(when debug
(format *error-output*
"File ~A not found.~%"
fix-filename))
(warn "Quicklisp fix was not found at ~S.~%" fix-filename))))))