Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This option turns off dependencies installation. In some cases, this can be useful. For example, `qlot install` may fail if some of the lisp files references a missing package. To reproduce this situation, do: ``` mkdir test-qlot cd test-qlot echo '' > qlfile echo '(defsystem "test" :class :package-inferred-system)' > test.asd echo '(cl-fad:list-directory "")' > some.lisp qlot install ``` This will produce the following error: ``` Unhandled SB-INT:SIMPLE-READER-PACKAGE-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING {10004F84C3}>: Package CL-FAD does not exist. Line: 1, Column: 21, File-Position: 21 Stream: #<SB-SYS:FD-STREAM for "file /private/tmp/test-qlot/some.lisp" {100414C223}> Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {10004F84C3}> 0: (SB-DEBUG::DEBUGGER-DISABLED-HOOK #<SB-INT:SIMPLE-READER-PACKAGE-ERROR "Package ~A does not exist." {100414C443}> #<unused argument> :QUIT T) 1: (SB-DEBUG::RUN-HOOK SB-EXT:*INVOKE-DEBUGGER-HOOK* #<SB-INT:SIMPLE-READER-PACKAGE-ERROR "Package ~A does not exist." {100414C443}>) 2: (INVOKE-DEBUGGER #<SB-INT:SIMPLE-READER-PACKAGE-ERROR "Package ~A does not exist." {100414C443}>) 3: (ERROR #<SB-INT:SIMPLE-READER-PACKAGE-ERROR "Package ~A does not exist." {100414C443}>) 4: (SB-KERNEL:WITH-SIMPLE-CONDITION-RESTARTS ERROR NIL SB-INT:SIMPLE-READER-PACKAGE-ERROR :PACKAGE "CL-FAD" :STREAM #<SB-SYS:FD-STREAM for "file /private/tmp/test-qlot/some.lisp" {100414C223}> :FORMAT-CONTROL "Package ~A does not exist." :FORMAT-ARGUMENTS ("CL-FAD")) 5: (SB-IMPL::READER-FIND-PACKAGE "CL-FAD" #<SB-SYS:FD-STREAM for "file /private/tmp/test-qlot/some.lisp" {100414C223}> T) 6: (SB-IMPL::READ-TOKEN #<SB-SYS:FD-STREAM for "file /private/tmp/test-qlot/some.lisp" {100414C223}> #\c) 7: (SB-IMPL::READ-MAYBE-NOTHING #<SB-SYS:FD-STREAM for "file /private/tmp/test-qlot/some.lisp" {100414C223}> #\c) 8: (SB-IMPL::READ-LIST #<SB-SYS:FD-STREAM for "file /private/tmp/test-qlot/some.lisp" {100414C223}> #<unused argument>) 9: (SB-IMPL::READ-MAYBE-NOTHING #<SB-SYS:FD-STREAM for "file /private/tmp/test-qlot/some.lisp" {100414C223}> #\() 10: (SB-IMPL::%READ-PRESERVING-WHITESPACE #<SB-SYS:FD-STREAM for "file /private/tmp/test-qlot/some.lisp" {100414C223}> NIL (NIL) T) 11: (SB-IMPL::%READ-PRESERVING-WHITESPACE #<SB-SYS:FD-STREAM for "file /private/tmp/test-qlot/some.lisp" {100414C223}> NIL (NIL) NIL) 12: (READ #<SB-SYS:FD-STREAM for "file /private/tmp/test-qlot/some.lisp" {100414C223}> NIL NIL NIL) 13: (ASDF/PACKAGE-INFERRED-SYSTEM::STREAM-DEFPACKAGE-FORM #<SB-SYS:FD-STREAM for "file /private/tmp/test-qlot/some.lisp" {100414C223}>) 14: (UIOP/STREAM:CALL-WITH-INPUT-FILE #P"/private/tmp/test-qlot/some.lisp" #<FUNCTION (LAMBDA (ASDF/PACKAGE-INFERRED-SYSTEM::F) :IN ASDF/PACKAGE-INFERRED-SYSTEM::FILE-DEFPACKAGE-FORM) {2262D76B}> :ELEMENT-TYPE NIL :EXTERNAL-FORMAT NIL :IF-DOES-NOT-EXIST :ERROR) 15: (QLOT/UTILS/ASDF:LISP-FILE-DEPENDENCIES #P"/private/tmp/test-qlot/some.lisp") 16: (QLOT/INSTALL::INSTALL-DEPENDENCIES #P"/private/tmp/test-qlot/" #P"/private/tmp/test-qlot/.qlot/") 17: (QLOT/INSTALL:INSTALL-QLFILE #P"/private/tmp/test-qlot/qlfile" :QUICKLISP-HOME NIL :INSTALL-DEPS T) 18: (MAIN "install") 19: (SB-INT:SIMPLE-EVAL-IN-LEXENV (APPLY (QUOTE MAIN) ROSWELL:*ARGV*) #<NULL-LEXENV>) 20: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ROSWELL:QUIT (APPLY (QUOTE MAIN) ROSWELL:*ARGV*)) #<NULL-LEXENV>) 21: (SB-EXT:EVAL-TLF (ROSWELL:QUIT (APPLY (QUOTE MAIN) ROSWELL:*ARGV*)) NIL NIL) 22: ((LABELS SB-FASL::EVAL-FORM :IN SB-INT:LOAD-AS-SOURCE) (ROSWELL:QUIT (APPLY (QUOTE MAIN) ROSWELL:*ARGV*)) NIL) 23: (SB-INT:LOAD-AS-SOURCE #<CONCATENATED-STREAM :STREAMS NIL {10036B0733}> :VERBOSE NIL :PRINT NIL :CONTEXT "loading") 24: ((FLET SB-FASL::THUNK :IN LOAD)) 25: (SB-FASL::CALL-WITH-LOAD-BINDINGS #<CLOSURE (FLET SB-FASL::THUNK :IN LOAD) {19FF4EB}> #<CONCATENATED-STREAM :STREAMS NIL {10036B0733}>) 26: ((FLET SB-FASL::LOAD-STREAM :IN LOAD) #<CONCATENATED-STREAM :STREAMS NIL {10036B0733}> NIL) 27: (LOAD #<CONCATENATED-STREAM :STREAMS NIL {10036B0733}> :VERBOSE NIL :PRINT NIL :IF-DOES-NOT-EXIST T :EXTERNAL-FORMAT :DEFAULT) 28: ((FLET ROSWELL::BODY :IN ROSWELL:SCRIPT) #<SB-SYS:FD-STREAM for "file /Users/art/.roswell/local-projects/fukamachi/qlot/roswell/qlot.ros" {10036ABCB3}>) 29: (ROSWELL:SCRIPT "/Users/art/.roswell/bin/qlot" "install") 30: (ROSWELL:RUN ((:EVAL "(ros:asdf)") (:EVAL "(ros:quicklisp)") (:SCRIPT "/Users/art/.roswell/bin/qlot" "install") (:QUIT NIL))) 31: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ROSWELL:RUN (QUOTE ((:EVAL "(ros:asdf)") (:EVAL "(ros:quicklisp)") (:SCRIPT "/Users/art/.roswell/bin/qlot" "install") (:QUIT NIL)))) #<NULL-LEXENV>) 32: (EVAL (ROSWELL:RUN (QUOTE ((:EVAL "(ros:asdf)") (:EVAL "(ros:quicklisp)") (:SCRIPT "/Users/art/.roswell/bin/qlot" "install") (:QUIT NIL))))) 33: (SB-IMPL::PROCESS-EVAL/LOAD-OPTIONS ((:EVAL . "(progn #-ros.init(cl:load \"/usr/local/etc/roswell/init.lisp\"))") (:EVAL . "(ros:run '((:eval\"(ros:asdf)\")(:eval\"(ros:quicklisp)\")(:script \"/Users/art/.roswell/bin/qlot\"\"install\")(:quit ())))"))) 34: (SB-IMPL::TOPLEVEL-INIT) 35: ((FLET SB-UNIX::BODY :IN SB-EXT:SAVE-LISP-AND-DIE)) 36: ((FLET "WITHOUT-INTERRUPTS-BODY-14" :IN SB-EXT:SAVE-LISP-AND-DIE)) 37: ((LABELS SB-IMPL::RESTART-LISP :IN SB-EXT:SAVE-LISP-AND-DIE)) ``` However you can skip installation of the dependencies now: ``` $ qlot install --no-deps Reading '/private/tmp/test-qlot/qlfile'... Already have dist "quicklisp" version "2019-11-30". Successfully installed. ```
- Loading branch information