@@ -654,18 +654,13 @@ access a single file/directory within an artifact. Example:
654654!!! compat "Julia 1.6"
655655 Slash-indexing requires at least Julia 1.6.
656656"""
657- macro artifact_str (name, platform= nothing , artifacts_toml_path = nothing )
657+ macro artifact_str (name, platform= nothing )
658658 # Find Artifacts.toml file we're going to load from
659659 srcfile = string (__source__. file)
660660 if ((isinteractive () && startswith (srcfile, " REPL[" )) || (! isinteractive () && srcfile == " none" )) && ! isfile (srcfile)
661661 srcfile = pwd ()
662662 end
663- # Sometimes we know the exact path to the Artifacts.toml file, so we can save some lookups
664- local artifacts_toml = if artifacts_toml_path === nothing || artifacts_toml_path == :(nothing )
665- find_artifacts_toml (srcfile)
666- else
667- eval (artifacts_toml_path)
668- end
663+ local artifacts_toml = find_artifacts_toml (srcfile)
669664 if artifacts_toml === nothing
670665 error (string (
671666 " Cannot locate '(Julia)Artifacts.toml' file when attempting to use artifact '" ,
@@ -695,7 +690,7 @@ macro artifact_str(name, platform=nothing, artifacts_toml_path=nothing)
695690
696691 # If `name` is a constant, (and we're using the default `Platform`) we can actually load
697692 # and parse the `Artifacts.toml` file now, saving the work from runtime.
698- if isa (name, AbstractString) && ( platform === nothing || platform == :( nothing ))
693+ if isa (name, AbstractString) && platform === nothing
699694 # To support slash-indexing, we need to split the artifact name from the path tail:
700695 platform = HostPlatform ()
701696 artifact_name, artifact_path_tail, hash = artifact_slash_lookup (name, artifact_dict, artifacts_toml, platform)
0 commit comments