How to add a local project to asdf configured by quicklisp

后端 未结 4 410
没有蜡笔的小新
没有蜡笔的小新 2020-12-25 08:48

I want to add a local project to the known projects by asdf, but due to the fact that asdf was installed and configured by quicklisp and the *central-registry*

4条回答
  •  囚心锁ツ
    2020-12-25 09:37

    The ASDF manual has in Section 3:

    Since ASDF 2, the preferred way to configure where ASDF finds your systems is the source-registry facility, fully described in its own chapter of this manual. See Controlling where ASDF searches for systems.

    Item 7 in Controlling where ASDF searches for systems is

    The source registry will be configured from system configuration directory /etc/common-lisp/source-registry.conf.d/ if it exists.

    This location is available in Debian and is what I use. By default, Debian puts the sources of downloaded CL libraries in /usr/share/common-lisp/source. However, I don't know (though I have tried to find out) how this location is made known to ASDF. So, you can add files with pathnames to this location, to make those pathnames known to ASDF. I've added a file, /etc/common-lisp/source-registry.conf.d/04-local.conf, containing

    (:tree #p"/usr/local/share/common-lisp/source/")

    and now i can put sources of locally downloaded CL libraries in /usr/local/share/common-lisp/source/ and they will be visible to ASDL. The :tree syntax is described in Configuring ASDF to find your systems.

    asdf:*central-registry* is now depreciated. See Subsection 3.2: Configuring ASDF to find your systems — old style.

提交回复
热议问题