Skip to content

Commit

Permalink
start using mirrors list from the lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Gadorek authored and Hahihula committed Oct 2, 2024
1 parent 162621e commit 6787628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 2 additions & 10 deletions src/wizard/prompts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,15 @@ pub fn select_mirrors(mut config: Settings) -> Result<Settings, String> {
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(),
)?),
};

config.mirror = match config.mirror {
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(),
)?),
};

Expand Down

0 comments on commit 6787628

Please sign in to comment.