Skip to content

Commit 5bcc6d2

Browse files
staticfloatDilumAluthge
authored andcommitted
Use user scope for eval() invocation in @artifact_str
This causes the eval to be invoked in user scope, rather than in the `Artifacts` module itself. X-ref: #46755 (review)
1 parent 625aed1 commit 5bcc6d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/Artifacts/src/Artifacts.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ macro artifact_str(name, platform=nothing, artifacts_toml_path=nothing)
662662
local artifacts_toml = if artifacts_toml_path === nothing || artifacts_toml_path == :(nothing)
663663
find_artifacts_toml(srcfile)
664664
else
665-
eval(artifacts_toml_path)
665+
Core.eval(__module__, artifacts_toml_path)
666666
end
667667
if artifacts_toml === nothing
668668
error(string(

0 commit comments

Comments
 (0)