[asdf-devel] Detecting non-defsystem dependencies

Zach Beane xach at xach.com
Wed Nov 6 19:51:16 UTC 2013

"Robert P. Goldman" <rpgoldman at sift.info> writes:

> Zach Beane wrote:
>> Some system files look like this:
>>    ;;;; myproject.asd
>>    (asdf:load-system "some-prerequisite")
>>    (defsystem "myproject" ...)
>> Can you recommend a good way to detect that system "myproject" depends
>> on system "some-prerequisite"? Are there any hooks or other features of
>> ASDF that might make it straightforward?
>> Zach
> I suppose one could do something scary like loading the system
> definition through a process that would cause invocation of ASDF
> operations to be trapped and logged instead of executed.  This would be
> a sort of sandbox, and results of loading the .asd file into the sandbox
> could be used to infer the presence of such loading events.

I don't need a sandboxing effect, either, I'm happy to fully load things
and inspect the state of the world afterwards.

> This still seems pretty nasty compared to fixing the system definition
> files.

I don't mind getting scary and nasty so other people don't have to.


More information about the asdf-devel mailing list