From 67876285018c09853a324295fe09fae8eedf9f42 Mon Sep 17 00:00:00 2001 From: Petr Gadorek Date: Wed, 2 Oct 2024 13:48:49 +0200 Subject: [PATCH] start using mirrors list from the lib --- Cargo.lock | 2 +- src/wizard/prompts.rs | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index df7d3e5..ed47ca6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1677,7 +1677,7 @@ dependencies = [ [[package]] name = "idf-im-lib" version = "0.1.0" -source = "git+https://github.com/espressif/idf-im-lib.git?branch=master#66c39ef2182bc3243688bb77ae43fc3b793fc180" +source = "git+https://github.com/espressif/idf-im-lib.git?branch=master#ce610028928149c7558e7e9964e524f2c2560de4" dependencies = [ "colored", "config", diff --git a/src/wizard/prompts.rs b/src/wizard/prompts.rs index 6f8b36c..98c1bd1 100644 --- a/src/wizard/prompts.rs +++ b/src/wizard/prompts.rs @@ -142,11 +142,7 @@ pub fn select_mirrors(mut config: Settings) -> Result { Some(mirror) => Some(mirror), None => Some(generic_select( "wizard.idf.mirror", - &[ - "https://github.com", - "https://jihulab.com/esp-mirror", - "https://gitee.com/", - ], + idf_im_lib::get_idf_mirrors_list(), )?), }; @@ -154,11 +150,7 @@ pub fn select_mirrors(mut config: Settings) -> Result { Some(mirror) => Some(mirror), None => Some(generic_select( "wizard.tools.mirror", - &[ - "https://github.com", - "https://dl.espressif.com/github_assets", - "https://dl.espressif.cn/github_assets", - ], + idf_im_lib::get_idf_tools_mirrors_list(), )?), };