File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,14 @@ macro require(pkg, expr)
58
58
return Expr (:macrocall , Symbol (" @warn" ), __source__,
59
59
" Requires now needs a UUID; please see the readme for changes in 0.7." )
60
60
id, modname = parsepkg (pkg)
61
- pkg = Base. PkgId (Base. UUID (id), modname)
61
+ pkg = :( Base. PkgId (Base. UUID ($ id), $ modname) )
62
62
quote
63
63
if ! isprecompiling ()
64
- listenpkg (Base . PkgId (Base . UUID ( $ id), $ modname) ) do
64
+ listenpkg ($ pkg ) do
65
65
withpath ($ (string (__source__. file))) do
66
- err ($ __module__, $ (pkg . name) ) do
66
+ err ($ __module__, $ modname ) do
67
67
$ (esc (:(eval ($ (Expr (:quote , Expr (:block ,
68
- :(const $ (Symbol (pkg . name )) = Base. require ($ pkg)),
68
+ :(const $ (Symbol (modname )) = Base. require ($ pkg)),
69
69
expr)))))))
70
70
end
71
71
end
You can’t perform that action at this time.
0 commit comments