From 928f0a74f3bf1f1e55dc557d53e1cd8bd201bb9b Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Wed, 1 Dec 2021 13:13:54 -0500 Subject: [PATCH] require Julia 1.3 for Downloads package --- .github/workflows/CI.yml | 2 +- Project.toml | 4 +++- src/Conda.jl | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9818139..1e7ebf9 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -14,7 +14,7 @@ jobs: matrix: version: - "1" - - "1.0" + - "1.3" - nightly os: - ubuntu-latest diff --git a/Project.toml b/Project.toml index 3591bae..c4d04c9 100644 --- a/Project.toml +++ b/Project.toml @@ -3,13 +3,15 @@ uuid = "8f4d0f93-b110-5947-807f-2305c1781a2d" version = "1.5.2" [deps] +Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6" JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" VersionParsing = "81def892-9a0e-5fdd-b105-ffc91e053289" [compat] JSON = "0.18,0.19,0.20,0.21" VersionParsing = "1" -julia = "1" +julia = "1.3" +Downloads = "1" [extras] Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" diff --git a/src/Conda.jl b/src/Conda.jl index 2e1abee..b8de2c6 100644 --- a/src/Conda.jl +++ b/src/Conda.jl @@ -15,6 +15,7 @@ The main functions in Conda are: """ module Conda using JSON, VersionParsing +import Downloads const deps_file = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl") @@ -198,7 +199,7 @@ function _install_conda(env::Environment, force::Bool=false) installer = joinpath(PREFIX, "installer.exe") end mkpath(PREFIX) - download(_installer_url(), installer) + Downloads.download(_installer_url(), installer) @info("Installing miniconda ...") if Sys.isunix()