0

Can I automatically package-lock libraries as they are loaded by Quicklisp? I want every package locked. Can I do this?

Rekumaru
  • 421
  • 1
  • 4
  • 10

1 Answers1

2

To lock all existing packages just call:

(dolist (package list-all-packages)
  (sb-ext:lock-package package))
PuercoPop
  • 6,707
  • 4
  • 30
  • 40
  • 1
    It would be interesting to package-lock libraries *as* they are loaded, so you could see which libraries step on each other during loading. Unfortunately, I don't know any good way to do that. – Xach Aug 07 '15 at 13:08
  • @Xach how about defining an after method for asdf:operate that specializes on load-op. Computing the difference between the previous list of packages and the current one? – PuercoPop Aug 07 '15 at 16:04
  • It seems like only one person could do that. What if someone wanted more than one after method? – Xach Aug 09 '15 at 20:29