espup icon indicating copy to clipboard operation
espup copied to clipboard

Windows: ZIP artifacts should be downloaded to IDF_TOOLS_PATH/dist

Open georgik opened this issue 2 years ago • 2 comments

Bug description

espup install downloads ZIP diles to location under rustup.

Downloading file 'C:\Users\georgik\.rustup\toolchains\esp\riscv32-esp-elf\esp-12.2.0_20230208/riscv32-esp-elf.zip' from 'https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/riscv32-esp-elf-12.2.0_20230208-x86_64-w64-mingw32.zip'

Prefered location should be %IDF_TOOLS_PATH%/dist. This way idf-installer and esp-idf tools can pick up the already downloaded archive.

georgik avatar May 31 '23 06:05 georgik

Bug description

espup install downloads ZIP diles to location under rustup.

Downloading file 'C:\Users\georgik\.rustup\toolchains\esp\riscv32-esp-elf\esp-12.2.0_20230208/riscv32-esp-elf.zip' from 'https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/riscv32-esp-elf-12.2.0_20230208-x86_64-w64-mingw32.zip'

Prefered location should be %IDF_TOOLS_PATH%/dist. This way idf-installer and esp-idf tools can pick up the already downloaded archive.

This was decided in https://github.com/esp-rs/espup/discussions/154, we don't assume that the user has any IDF installed and all the installation takes place under $HOME/.rustup/toolchains/<name>

SergioGasquez avatar May 31 '23 07:05 SergioGasquez

The point of this issue is to reuse what ESP-IDF has already installed if the user has IDF_TOOLS_PATH defined.

SergioGasquez avatar Jun 02 '23 08:06 SergioGasquez