JuliaPackaging / Requires.jl

Lazy code loading for Julia
Other
195 stars 28 forks source link

Execution order between package extensions and `@require` #116

Open mateuszbaran opened 1 year ago

mateuszbaran commented 1 year ago

Right now when I have two packages, A and B, the order of loading package extension BAExt and execution of a @require A block in package B depends on which package is loaded first:

using A
using B

first executes @require A and then loads the extension, while

using B
using A

first loads the extension and then executes @require A block. Is there a way to ensure that the @require block is executed after the package extension is loaded regardless of the loading order?

Ref. https://github.com/JuliaManifolds/ManifoldDiff.jl/issues/26