Skip to content

Commit 05dcc5b

Browse files
KristofferCstaticfloat
authored andcommitted
address review comments
1 parent 601ba06 commit 05dcc5b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stdlib/Artifacts/src/Artifacts.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,17 +652,17 @@ access a single file/directory within an artifact. Example:
652652
!!! compat "Julia 1.6"
653653
Slash-indexing requires at least Julia 1.6.
654654
"""
655-
macro artifact_str(name, platform=nothing, artifact_path=nothing)
655+
macro artifact_str(name, platform=nothing, artifacts_toml_path=nothing)
656656
# Find Artifacts.toml file we're going to load from
657657
srcfile = string(__source__.file)
658658
if ((isinteractive() && startswith(srcfile, "REPL[")) || (!isinteractive() && srcfile == "none")) && !isfile(srcfile)
659659
srcfile = pwd()
660660
end
661661
# Sometimes we know the exact path to the Artifacts.toml file, so we can save some lookups
662-
local artifacts_toml = if artifact_path === nothing
662+
local artifacts_toml = if artifacts_toml_path === nothing
663663
find_artifacts_toml(srcfile)
664664
else
665-
artifact_path
665+
artifacts_toml_path
666666
end
667667
if artifacts_toml === nothing
668668
error(string(

stdlib/Artifacts/test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ end
9191
HelloWorldC_exe_path = joinpath(HelloWorldC_dir, "bin", "hello_world$(exeext)")
9292
@test isfile(HelloWorldC_exe_path)
9393

94-
HelloWorldC_dir_explicit_artifact = eval(Expr(:macrocall, Symbol("@artifact_str"), nothing, "HelloWorldC", nothing, joinpath(@__DIR__, "Artifacts.toml")))
94+
HelloWorldC_dir_explicit_artifact = eval(:(@artifact_str "HelloWorldC" joinpath(@__DIR__, "Artifacts.toml")))
9595
@test isdir(HelloWorldC_dir_explicit_artifact)
9696

9797
# Simple slash-indexed lookup

0 commit comments

Comments
 (0)