asdf:load-asd sometimes leads to ASDF failing to find components
Let's explain this with a recipe:
- Check out https://github.com/takagi/cl-reexport
cd cl-reexport
sbcl
(asdf:load-asd "/absolute-path/to/cl-reexport-test.asd")
(asdf:load-asd "/absolute-path/to/cl-reexport.asd")
(asdf:test-system :cl-reexport)
This last step succesfully runs the test but then fails with ASDF complaining that the "cl-reexport-test" component cannot be found.
If I replace the asdf:load-asd
with
(asdf:initialize-source-registry
`(:source-registry (:tree ,(uiop:getcwd))
:inherit-configuration))
then it works.
Any idea what's going on? Is asdf:load-asd
discouraged?