We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f71c39 + b4a1fbe commit fb4e8eeCopy full SHA for fb4e8ee
src/require.jl
@@ -58,14 +58,14 @@ macro require(pkg, expr)
58
return Expr(:macrocall, Symbol("@warn"), __source__,
59
"Requires now needs a UUID; please see the readme for changes in 0.7.")
60
id, modname = parsepkg(pkg)
61
- pkg = Base.PkgId(Base.UUID(id), modname)
+ pkg = :(Base.PkgId(Base.UUID($id), $modname))
62
quote
63
if !isprecompiling()
64
- listenpkg(Base.PkgId(Base.UUID($id), $modname)) do
+ listenpkg($pkg) do
65
withpath($(string(__source__.file))) do
66
- err($__module__, $(pkg.name)) do
+ err($__module__, $modname) do
67
$(esc(:(eval($(Expr(:quote, Expr(:block,
68
- :(const $(Symbol(pkg.name)) = Base.require($pkg)),
+ :(const $(Symbol(modname)) = Base.require($pkg)),
69
expr)))))))
70
end
71
0 commit comments