I know about using :module
s, but what about when systems get nested? Suppose I have the following structure, relative to some unknown user directory:
foo/
-foo.asd
-bar/
--bar.asd
This could arise, for example, when using Git submodules. How shall I configure the (defsystem)
call in foo.asd
to load bar
as a dependency, without modifying a config file outside of foo/
or demanding particular placement for the foo/
tree itself? Feels like it should be simple.
3 Feb. 2020: From @Svante's answer, it sounds like my question is really 'How do I dynamically ensure that foo/
and bar/
both get into the *source-registry*
?' The ASDF manual makes me think this should do the trick:
(asdf:initialize-source-registry
'(:source-registry
(:tree "«absolute-path-to-foo»/")
:inherit-configuration))
though I have not seen an example of that usage.
26 Mar. 2020: The technique above seems to work fine, so I'm closing this question. ASDF 3 is excellent.