-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for multiple packages in @require statement #54
Comments
Do we really need anything special here? module TestRequires
using Requires
function __init__()
@require Images="916415d5-f1e6-5110-898d-aaa5f9f070e0" begin
@require Revise="295af30f-e4ad-537b-8983-00126c2a3abe" println("Got both!")
end
end
end # module Session: julia> using TestRequires
[ Info: Precompiling TestRequires [eb9e79a2-1324-11e9-3469-91075b92f61d]
julia> using Images
julia> using Revise
[ Info: Recompiling stale cache file /tmp/pkgs/compiled/v1.0/Revise/M1Qoh.ji for Revise [295af30f-e4ad-537b-8983-00126c2a3abe]
Got both! |
Clever! 💯 |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes a functionality depends on a combination of packages, and it would be nice to have a syntax for that, something like
@require PkgA="..." PkgB="..." include("file.jl")
As discussed on slack, a current workaround is to do something like:
but that solution is too verbose for more than 2 packages.
The text was updated successfully, but these errors were encountered: