conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8.26k stars 981 forks source link

[feature] Report progress of unpacking source files #14589

Open Simran-B opened 1 year ago

Simran-B commented 1 year ago

What is your suggestion?

When building a dependency, the source files are downloaded with an upfront message that tells you how large the download is and there are regular updates on the progress printed in the terminal. However, there is no final message when the download is done, and also no message at all about the unpacking process.

When I tried to build qt/5.15.10, the download was seemingly stuck near the end. Checking the Task Manager (as I'm on Windows) showed that Python is maxing out one core, and the Resource Monitor showed a lot of I/O activity in %USERPROFILE%\.conan2\p\ which I assume was caused by Conan unpacking the source files, which can take a while.

It would be great to have an initial message about the unpacking and ideally continuous updates about the progress similar to the download.

(Observed on Windows 11 with Conan 2.0.9)

Have you read the CONTRIBUTING guide?

memsharded commented 1 year ago

Hi @Simran-B

Thanks for your suggestion. I agree this would be a nice improvement to the UX. At the moment it will display something for .zip files, but not for other .tgz, .xz extensions, so better add something there. Also add a info message when download finishes for large files, or at least when unzipping starts.