From 2b42a67b28a65f219b02976c86efbc1e8e7d1f97 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Fri, 2 Oct 2020 17:57:09 +0200 Subject: [PATCH] replace build.jl by Artifacts.toml --- src/init.jl | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/init.jl b/src/init.jl index efa41cd9..bbbe4ed1 100644 --- a/src/init.jl +++ b/src/init.jl @@ -77,20 +77,17 @@ function __init__() end end - if get(ENV, "PLOTS_HOST_DEPENDENCY_LOCAL", "false") == true - artifact_toml = joinpath(@__DIR__, "Artifacts.toml") + artifact_toml = joinpath(@__DIR__, "Artifacts.toml") - plotly_sha = artifact_hash("plotly", artifact_toml) - if plotly_sha === nothing || !artifact_exists(plotly_sha) - plotly_sha = create_artifact() do artifact_dir - download("https://cdn.plot.ly/plotly-1.54.2.min.js", joinpath(artifact_dir, "plotly-1.54.2.min.js")) - end + plotly_sha = artifact_hash("plotly", artifact_toml) + if plotly_sha == nothing || !artifact_exists(plotly_sha) + plotly_sha = create_artifact() do artifact_dir + download("https://cdn.plot.ly/plotly-1.54.2.min.js", joinpath(artifact_dir, "plotly-1.54.2.min.js")) end - - plotly_local_file_path[] = joinpath(artifact_path(plotly_sha), "plotly-1.54.2.min.js") - use_local_plotlyjs[] = true end + plotly_local_file_path[] = joinpath(artifact_path(plotly_sha), "plotly-1.54.2.min.js") + use_local_dependencies[] = use_local_plotlyjs[]